From 3bb652f2d224d501dec41f5770fbf8fa77567f84 Mon Sep 17 00:00:00 2001 From: besendorf Date: Thu, 24 Sep 2026 04:29:33 -0700 Subject: [PATCH] Test w-prefixed shortener detection --- tests/common/test_url.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/common/test_url.py b/tests/common/test_url.py index 52bfb5e3..5a10c414 100644 --- a/tests/common/test_url.py +++ b/tests/common/test_url.py @@ -37,3 +37,8 @@ def test_other_google_short_url_is_shortened(): ) def test_get_domain_strips_only_a_whole_www_prefix(url, domain): assert URL(url).domain == domain + + +def test_shortener_starting_with_w_is_detected(): + assert URL("https://w3t.org/example").check_if_shortened() is True + assert URL("https://www.w3t.org/example").check_if_shortened() is True