aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-05 15:58:04 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-05 15:58:04 -0700
commit95b9e7d906248bae4e43096887e6d3bb57dca8de (patch)
tree2b4be8843081b628cd96f8a7ca8ca031acceb884 /python
parent388503d92ff8a1f26a0376cc42cefb077a1d6401 (diff)
downloadfatcat-95b9e7d906248bae4e43096887e6d3bb57dca8de.tar.gz
fatcat-95b9e7d906248bae4e43096887e6d3bb57dca8de.zip
update tests for lookup views
Diffstat (limited to 'python')
-rw-r--r--python/tests/web_entity_views.py6
1 files changed, 3 insertions, 3 deletions
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')