From eb9c5b9a8d0b55e0ddaec864a1810f5f5d963a3e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 30 Jun 2018 20:30:51 -0700 Subject: more fatcat-web views (changelog, history, etc) --- python/tests/routes.py | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'python/tests/routes.py') diff --git a/python/tests/routes.py b/python/tests/routes.py index ec4eaf12..5a523efa 100644 --- a/python/tests/routes.py +++ b/python/tests/routes.py @@ -27,6 +27,12 @@ def test_all_views(app): rv = app.get('/container/00000000-0000-0000-1111-000000000002') assert rv.status_code == 200 + rv = app.get('/container/00000000-0000-0000-1111-000000000002/history') + assert rv.status_code == 200 + + rv = app.get('/container/00000000-0000-0000-1111-000000000002/edit') + assert rv.status_code == 200 + rv = app.get('/container/create') assert rv.status_code == 200 @@ -42,6 +48,12 @@ def test_all_views(app): rv = app.get('/creator/00000000-0000-0000-2222-000000000002') assert rv.status_code == 200 + rv = app.get('/creator/00000000-0000-0000-2222-000000000002/history') + assert rv.status_code == 200 + + rv = app.get('/creator/00000000-0000-0000-2222-000000000002/edit') + assert rv.status_code == 200 + rv = app.get('/creator/lookup?orcid=0000-0003-2088-7465') assert rv.status_code == 302 @@ -54,6 +66,15 @@ 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/history') + assert rv.status_code == 200 + + rv = app.get('/release/00000000-0000-0000-4444-000000000002/edit') + assert rv.status_code == 200 + + rv = app.get('/release/create') + assert rv.status_code == 200 + rv = app.get('/release/lookup?doi=10.123/abc') assert rv.status_code == 302 @@ -66,11 +87,14 @@ def test_all_views(app): rv = app.get('/work/00000000-0000-0000-5555-000000000002') assert rv.status_code == 200 - rv = app.get('/work/create') + rv = app.get('/work/00000000-0000-0000-5555-000000000002/history') assert rv.status_code == 200 - #rv = app.get('/release/00000000-0000-0000-4444-000000000002/changelog') - #assert rv.status_code == 200 + rv = app.get('/work/00000000-0000-0000-5555-000000000002/edit') + assert rv.status_code == 200 + + rv = app.get('/work/create') + assert rv.status_code == 404 rv = app.get('/editgroup/1') assert rv.status_code == 200 -- cgit v1.2.3