aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-03-26 22:38:14 +0000
committerMartin Czygan <martin@archive.org>2020-03-26 22:38:14 +0000
commit5c4f5114b4dfeb7a5deca20d460c9fc5759a922a (patch)
treee0e4d29408214bcd81a12bdc1f9f9a8706944458 /python/tests
parentea241c0718407285774bff85e4b3b99aed0b9186 (diff)
parentb9657b39f4061e4cf870fa253c5665ab5ad60cc6 (diff)
downloadfatcat-5c4f5114b4dfeb7a5deca20d460c9fc5759a922a.tar.gz
fatcat-5c4f5114b4dfeb7a5deca20d460c9fc5759a922a.zip
Merge branch 'bnewbold-400-bad-revisions' into 'master'
catch ApiValueError in some generic API calls See merge request webgroup/fatcat!35
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/web_entity_views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tests/web_entity_views.py b/python/tests/web_entity_views.py
index 23a2b33b..e25c0296 100644
--- a/python/tests/web_entity_views.py
+++ b/python/tests/web_entity_views.py
@@ -42,6 +42,8 @@ def test_entity_basics(app):
assert rv.status_code == 200
rv = app.get('/{}/rev/{}'.format(entity_type, revision))
assert rv.status_code == 200
+ rv = app.get('/{}/rev/{}_something'.format(entity_type, revision))
+ assert rv.status_code == 400
rv = app.get('/{}/rev/{}/metadata'.format(entity_type, revision))
assert rv.status_code == 200
print('/editgroup/aaaaaaaaaaaabo53aaaaaaaaaq/{}/{}'.format(entity_type, ident))