From 7775066990d0fb8556dbfc65a49f4e1c81f8b569 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 21 Nov 2024 19:44:12 +0100 Subject: [PATCH] Test normalize --- test/test_normalize.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/test_normalize.py diff --git a/test/test_normalize.py b/test/test_normalize.py new file mode 100644 index 0000000..5a89192 --- /dev/null +++ b/test/test_normalize.py @@ -0,0 +1,10 @@ + +import socials_util + + +def test_normalize_yt(): + url = 'https://www.youtube.com/c/WheelieYellow' + social_link = socials_util.determine_social_from_url(url) + assert social_link.url.geturl() == 'https://youtube.com/@WheelieYellow' + +