summaryrefslogtreecommitdiffstats
path: root/python/tests/routes.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-30 20:30:51 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-30 20:31:00 -0700
commiteb9c5b9a8d0b55e0ddaec864a1810f5f5d963a3e (patch)
tree6154a519565d2b94fae54f32d9ea20088be4785c /python/tests/routes.py
parent9f40f6131cb08f14a8a5b4211af9c71ee474f3e6 (diff)
downloadfatcat-eb9c5b9a8d0b55e0ddaec864a1810f5f5d963a3e.tar.gz
fatcat-eb9c5b9a8d0b55e0ddaec864a1810f5f5d963a3e.zip
more fatcat-web views (changelog, history, etc)
Diffstat (limited to 'python/tests/routes.py')
-rw-r--r--python/tests/routes.py30
1 files changed, 27 insertions, 3 deletions
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