Modified result length test

main
Ben Busby 2020-04-15 17:54:38 -06:00
parent ab59682cad
commit 0d17cc8ef6
1 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,10 @@ def test_search_results(client):
rv = client.get('/search?q=test')
assert rv._status_code == 200
assert len(get_search_results(rv.data)) == 10
# Depending on the search, there can be more
# than 10 result divs
assert len(get_search_results(rv.data)) >= 10
assert len(get_search_results(rv.data)) <= 15
def test_recent_results(client):