mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 23:00:20 +00:00
ds store, better tests
Signed-off-by: Kenneth Reitz <me@kennethreitz.org> Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.DS_Store
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user