diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-07-30 19:18:17 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-07-31 14:21:36 -0700 |
commit | 5037642d7775c638d035c2faed8094537dfaf94d (patch) | |
tree | b21267d11cacfedf9c92df791bd453858b55670e /python | |
parent | a890f2da17956ad7c988f3f7cc457ae186e9f88a (diff) | |
download | fatcat-5037642d7775c638d035c2faed8094537dfaf94d.tar.gz fatcat-5037642d7775c638d035c2faed8094537dfaf94d.zip |
fix search redirect codes in new tests
Diffstat (limited to 'python')
-rw-r--r-- | python/tests/web_search.py | 8 |
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): |