diff --git a/.gitignore b/.gitignore index eb66b56..52793b4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ __pycache__/ *.py[cod] *$py.class +*.DS_Store # C extensions *.so diff --git a/tests/test_requests_html.py b/tests/test_requests_html.py index 1607336..c2c9ad7 100644 --- a/tests/test_requests_html.py +++ b/tests/test_requests_html.py @@ -69,12 +69,12 @@ def test_html_loading(): assert isinstance(html.html, str) -def test_links(): - assert not("#test".startswith('#') and True) is False - assert not("test".startswith('#') and True) is True - assert not("#test".startswith('#') and False) is True - assert not("test".startswith('#') and False) is True +def test_anchor_links(): + r = get() + r.html.skip_anchors = False + + assert '#site-map' in r.html.links if __name__ == '__main__': - test_html_loading() + test_anchor_links()