From a707c4b89dc8229a8200becc7329b0352c893c67 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Wed, 12 Jan 2022 01:30:08 -0300 Subject: [PATCH] Test get_host_from_link with invalid argument --- scripts/tests/test_validate_links.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/tests/test_validate_links.py b/scripts/tests/test_validate_links.py index c5a3fd4b..a559f712 100644 --- a/scripts/tests/test_validate_links.py +++ b/scripts/tests/test_validate_links.py @@ -65,3 +65,6 @@ class TestValidateLinks(unittest.TestCase): self.assertNotIn('/', host) self.assertNotIn('?', host) self.assertNotIn('#', host) + + with self.assertRaises(TypeError): + get_host_from_link()