From 95b9e7d906248bae4e43096887e6d3bb57dca8de Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 5 Jun 2019 15:58:04 -0700 Subject: update tests for lookup views --- python/tests/web_entity_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/tests/web_entity_views.py b/python/tests/web_entity_views.py index ba1b9f0a..8da9ab07 100644 --- a/python/tests/web_entity_views.py +++ b/python/tests/web_entity_views.py @@ -53,21 +53,21 @@ def test_entity_basics(app): def test_lookups(app): rv = app.get('/container/lookup') - assert rv.status_code == 400 + assert rv.status_code == 200 rv = app.get('/container/lookup?issnl=9999-9999') assert rv.status_code == 404 rv = app.get('/container/lookup?issnl=1234-5678') assert rv.status_code == 302 rv = app.get('/creator/lookup') - assert rv.status_code == 400 + assert rv.status_code == 200 rv = app.get('/creator/lookup?orcid=0000-0003-2088-7465') assert rv.status_code == 302 rv = app.get('/creator/lookup?orcid=0000-0003-2088-0000') assert rv.status_code == 404 rv = app.get('/file/lookup') - assert rv.status_code == 400 + assert rv.status_code == 200 rv = app.get('/file/lookup?sha1=7d97e98f8af710c7e7fe703abc8f639e0ee507c4') assert rv.status_code == 302 rv = app.get('/file/lookup?sha1=7d97e98f8af710c7e7f00000000000000ee507c4') -- cgit v1.2.3