aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2019-11-15 22:51:20 +0000
committerMartin Czygan <martin@archive.org>2019-11-15 22:51:20 +0000
commita8d352ff76226bafeecebde6aaaad5d98dc3102a (patch)
tree9e5cbd44dad2f309c316119e5971acf240919ca1 /python/tests
parenta6bcbac233e27652913668ca63c102e4d071d437 (diff)
parent0e4d65c773f586cc5cdafe8049e344a26688f710 (diff)
downloadfatcat-a8d352ff76226bafeecebde6aaaad5d98dc3102a.tar.gz
fatcat-a8d352ff76226bafeecebde6aaaad5d98dc3102a.zip
Merge branch 'martin-search-results-pagination' into 'master'
Add basic pagination to search results See merge request webgroup/fatcat!4
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/web_search.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/tests/web_search.py b/python/tests/web_search.py
index bdd858d0..19e2c29f 100644
--- a/python/tests/web_search.py
+++ b/python/tests/web_search.py
@@ -16,7 +16,8 @@ def test_release_search(app):
rv = app.get('/release/search?q=blood')
assert rv.status_code == 200
- assert b"Showing top " in rv.data
+ assert b"Showing" in rv.data
+ assert b"Quantum Studies of Acetylene Adsorption on Ice Surface" in rv.data
@responses.activate
def test_container_search(app):
@@ -29,7 +30,7 @@ def test_container_search(app):
rv = app.get('/container/search?q=blood')
assert rv.status_code == 200
- assert b"Showing top " in rv.data
+ assert b"Showing" in rv.data
assert b"European Instructional Course Lectures" in rv.data
assert b"British Editorial Society of Bone and Joint Surger" in rv.data