1
mirror of https://github.com/public-apis/public-apis synced 2024-11-24 21:27:14 +01:00

Remove setUp method

This commit is contained in:
Matheus Felipe 2022-01-11 22:19:54 -03:00
parent bf4dfcd39d
commit 3cc0f49b29
No known key found for this signature in database
GPG Key ID: AA785C523274872F

View File

@ -7,8 +7,8 @@ from validate.links import find_links_in_text
class TestValidateLinks(unittest.TestCase): class TestValidateLinks(unittest.TestCase):
def setUp(self): def test_find_link_in_text(self):
self.text = """ text = """
# this is valid # this is valid
http://example.com?param1=1&param2=2#anchor http://example.com?param1=1&param2=2#anchor
@ -28,9 +28,7 @@ class TestValidateLinks(unittest.TestCase):
https//.com https//.com
""" """
links = find_links_in_text(text)
def test_find_link_in_text(self):
links = find_links_in_text(self.text)
self.assertIsInstance(links, list) self.assertIsInstance(links, list)
self.assertEqual(len(links), 7) self.assertEqual(len(links), 7)