mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 23:00:20 +00:00
Fix tests
This commit is contained in:
committed by
Alessandro Romano
parent
b769fc3dac
commit
36a647e6ea
@@ -7,7 +7,6 @@ session = HTMLSession()
|
||||
def test_pagination():
|
||||
pages = (
|
||||
'https://xkcd.com/1957/',
|
||||
'https://reddit.com/',
|
||||
'https://smile.amazon.com/',
|
||||
'https://theverge.com/archives'
|
||||
)
|
||||
@@ -22,7 +21,6 @@ async def test_async_pagination(event_loop):
|
||||
asession = AsyncHTMLSession()
|
||||
pages = (
|
||||
'https://xkcd.com/1957/',
|
||||
'https://reddit.com/',
|
||||
'https://smile.amazon.com/',
|
||||
'https://theverge.com/archives'
|
||||
)
|
||||
|
||||
@@ -79,7 +79,7 @@ def test_containing():
|
||||
r = get()
|
||||
|
||||
python = r.html.find(containing='python')
|
||||
assert len(python) == 191
|
||||
assert len(python) == 192
|
||||
|
||||
for e in python:
|
||||
assert 'python' in e.full_text.lower()
|
||||
|
||||
Reference in New Issue
Block a user