From 3075f0ab8853fd97c68d3f0b8086dfa5c863c7f2 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 Jun 2018 18:23:09 -0700 Subject: copy some of paper-search over --- python/tests/routes.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'python/tests/routes.py') diff --git a/python/tests/routes.py b/python/tests/routes.py index b2cfd058..f92df54c 100644 --- a/python/tests/routes.py +++ b/python/tests/routes.py @@ -54,7 +54,13 @@ def test_all_views(app): rv = app.get('/release/00000000-0000-0000-4444-000000000002') assert rv.status_code == 200 - rv = app.get('/release/00000000-0000-0000-4444-000000000002'.format(route)) + rv = app.get('/release/lookup?doi=10.123/abc') + assert rv.status_code == 302 + + rv = app.get('/release/lookup?doi=10.123%2Fabc') + assert rv.status_code == 302 + + rv = app.get('/release/search') assert rv.status_code == 200 rv = app.get('/work/00000000-0000-0000-5555-000000000002') -- cgit v1.2.3