diff --git a/tests/browse_tests.py b/tests/browse_tests.py deleted file mode 100644 index 90692d8853a7..000000000000 --- a/tests/browse_tests.py +++ /dev/null @@ -1,29 +0,0 @@ -import os -import sys -import unittest - -from bs4 import BeautifulSoup - -sys.path.append(os.path.abspath("../scripts")) - -from browse import extract_hyperlinks - - -class TestBrowseLinks(unittest.TestCase): - """Unit tests for the browse module functions that extract hyperlinks.""" - - def test_extract_hyperlinks(self): - """Test the extract_hyperlinks function with a simple HTML body.""" - body = """ - - Google - Foo -
Some other crap
- - """ - soup = BeautifulSoup(body, "html.parser") - links = extract_hyperlinks(soup, "http://example.com") - self.assertEqual( - links, - [("Google", "https://google.com"), ("Foo", "http://example.com/foo.html")], - )