From 5037642d7775c638d035c2faed8094537dfaf94d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 30 Jul 2020 19:18:17 -0700 Subject: fix search redirect codes in new tests --- python/tests/web_search.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python') 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): -- cgit v1.2.3