diff options
author | Martin Czygan <martin@archive.org> | 2020-03-26 22:38:14 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2020-03-26 22:38:14 +0000 |
commit | 5c4f5114b4dfeb7a5deca20d460c9fc5759a922a (patch) | |
tree | e0e4d29408214bcd81a12bdc1f9f9a8706944458 /python/tests | |
parent | ea241c0718407285774bff85e4b3b99aed0b9186 (diff) | |
parent | b9657b39f4061e4cf870fa253c5665ab5ad60cc6 (diff) | |
download | fatcat-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.py | 2 |
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)) |