aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/web_entity_views.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-10-03 19:20:45 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-10-03 19:20:45 -0700
commit7e945babae47a725a80b4a9cff0c58dce534c101 (patch)
tree987756bcd0752a3ef60f90371cd20935707ccb59 /python/tests/web_entity_views.py
parent2e2bbc2ab9642675abdec6696b8862e67593323a (diff)
downloadfatcat-7e945babae47a725a80b4a9cff0c58dce534c101.tar.gz
fatcat-7e945babae47a725a80b4a9cff0c58dce534c101.zip
redirect direct entity underscore links
Diffstat (limited to 'python/tests/web_entity_views.py')
-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 6555eeeb..c42661cb 100644
--- a/python/tests/web_entity_views.py
+++ b/python/tests/web_entity_views.py
@@ -34,6 +34,8 @@ def test_entity_basics(app):
# good requests
rv = app.get('/{}/{}'.format(entity_type, ident))
assert rv.status_code == 200
+ rv = app.get('/{}_{}'.format(entity_type, ident))
+ assert rv.status_code == 302
rv = app.get('/{}/{}/history'.format(entity_type, ident))
assert rv.status_code == 200
rv = app.get('/{}/{}/metadata'.format(entity_type, ident))