Skip to content

Commit

Permalink
ds store, better tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
  • Loading branch information
kennethreitz committed Feb 28, 2018
1 parent 37a4e27 commit 65f6271
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
__pycache__/
*.py[cod]
*$py.class
*.DS_Store

# C extensions
*.so
Expand Down
12 changes: 6 additions & 6 deletions tests/test_requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 65f6271

Please sign in to comment.