From 1866c0d83a1e6fdbaa3a8dd73d9718bb5ef9df0b Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Thu, 13 Jan 2022 16:45:14 -0300 Subject: [PATCH] Create basic test to fake_user_agent --- scripts/tests/test_validate_links.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/tests/test_validate_links.py b/scripts/tests/test_validate_links.py index 73103661..a77950cb 100644 --- a/scripts/tests/test_validate_links.py +++ b/scripts/tests/test_validate_links.py @@ -3,6 +3,7 @@ import unittest from validate.links import find_links_in_text +from validate.links import fake_user_agent from validate.links import get_host_from_link from validate.links import has_cloudflare_protection @@ -63,6 +64,10 @@ class TestValidateLinks(unittest.TestCase): find_links_in_text(1) find_links_in_text(True) + def test_if_fake_user_agent_has_a_str_as_return(self): + user_agent = fake_user_agent() + self.assertIsInstance(user_agent, str) + def test_get_host_from_link(self): links = [ 'example.com',