aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-07-30 19:18:17 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-30 23:45:30 -0700
commit6c2bc56b29d42737a62513520aec5dd148ccdcc9 (patch)
tree970f833d18c0681b4924a5ba7a42867ceca0c3a6
parentb14040ecb359d1575280b24eaab9bd0e4964e3f7 (diff)
downloadfatcat-6c2bc56b29d42737a62513520aec5dd148ccdcc9.tar.gz
fatcat-6c2bc56b29d42737a62513520aec5dd148ccdcc9.zip
fix search redirect codes in new tests
-rw-r--r--python/tests/web_search.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/tests/web_search.py b/python/tests/web_search.py
index e34cd065..a7bf7ec7 100644
--- a/python/tests/web_search.py
+++ b/python/tests/web_search.py
@@ -10,22 +10,22 @@ from fixtures import *
def test_generic_search(app):
rv = app.get('/search?q=blood')
- assert rv.status_code == 301
+ assert rv.status_code == 302
assert "/release/search" in rv.location
# file sha1sum
rv = app.get('/search?q=0262d5351e8e7a0af27af8ceaf7b4e581da085f2')
- assert rv.status_code == 301
+ assert rv.status_code == 302
assert "/file/lookup" in rv.location
# PMCID
rv = app.get('/search?q=PMC12345')
- assert rv.status_code == 301
+ assert rv.status_code == 302
assert "/release/lookup" in rv.location
# ISSN
rv = app.get('/search?q=1234-5678')
- assert rv.status_code == 301
+ assert rv.status_code == 302
assert "/container/lookup" in rv.location
def test_release_search(app, mocker):