From 0d17cc8ef6d949b6e614415c35e371735f7c5bd8 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 15 Apr 2020 17:54:38 -0600 Subject: [PATCH] Modified result length test --- test/test_results.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_results.py b/test/test_results.py index 4ece3ad..e67f57a 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -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):