aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/fatcat/routes.py25
-rw-r--r--python/tests/routes.py13
2 files changed, 0 insertions, 38 deletions
diff --git a/python/fatcat/routes.py b/python/fatcat/routes.py
index ad5c868c..ab7d2c92 100644
--- a/python/fatcat/routes.py
+++ b/python/fatcat/routes.py
@@ -18,11 +18,6 @@ def container_view(ident):
abort(ae.status)
return render_template('container_view.html', container=entity)
-@app.route('/container/random', methods=['GET'])
-def container_random():
- """Not actually random, just a dummy example"""
- return redirect("/container/00000000-0000-0000-1111-000000000002")
-
@app.route('/container/create', methods=['GET'])
def container_create_view():
return render_template('container_add.html')
@@ -44,11 +39,6 @@ def creator_view(ident):
abort(ae.status)
return render_template('creator_view.html', creator=entity)
-@app.route('/creator/random', methods=['GET'])
-def creator_random():
- """Not actually random, just a dummy example"""
- return redirect("/creator/00000000-0000-0000-2222-000000000002")
-
@app.route('/file/<uuid:ident>', methods=['GET'])
def file_view(ident):
try:
@@ -57,11 +47,6 @@ def file_view(ident):
abort(ae.status)
return render_template('file_view.html', file=entity)
-@app.route('/file/random', methods=['GET'])
-def file_random():
- """Not actually random, just a dummy example"""
- return redirect("/file/00000000-0000-0000-3333-000000000002")
-
@app.route('/release/<uuid:ident>', methods=['GET'])
def release_view(ident):
try:
@@ -72,11 +57,6 @@ def release_view(ident):
authors = sorted(authors, key=lambda c: c.index)
return render_template('release_view.html', release=entity, authors=authors)
-@app.route('/release/random', methods=['GET'])
-def release_random():
- """Not actually random, just a dummy example"""
- return redirect("/release/00000000-0000-0000-4444-000000000002")
-
#@app.route('/release/<uuid:ident>/changelog', methods=['GET'])
#def release_changelog(ident):
# try:
@@ -98,11 +78,6 @@ def work_view(ident):
abort(ae.status)
return render_template('work_view.html', work=entity)
-@app.route('/work/random', methods=['GET'])
-def work_random():
- """Not actually random, just a dummy example"""
- return redirect("/work/00000000-0000-0000-5555-000000000002")
-
@app.route('/work/create', methods=['GET'])
def work_create():
return render_template('work_add.html')
diff --git a/python/tests/routes.py b/python/tests/routes.py
index b4fb506c..d6815740 100644
--- a/python/tests/routes.py
+++ b/python/tests/routes.py
@@ -24,9 +24,6 @@ def test_all_views(app):
rv = app.get('/{}/f1f046a3-45c9-ffff-ffff-ffffffffffff'.format(route))
assert rv.status_code == 404
- rv = app.get('/{}/random'.format(route))
- assert rv.status_code == 302
-
rv = app.get('/container/00000000-0000-0000-1111-000000000002'.format(route))
assert rv.status_code == 200
@@ -42,19 +39,9 @@ def test_all_views(app):
rv = app.get('/work/00000000-0000-0000-5555-000000000002'.format(route))
assert rv.status_code == 200
- rv = app.get('/work/random')
- rv = app.get(rv.location)
- assert rv.status_code == 200
-
- rv = app.get('/work/random')
- assert rv.status_code == 302
-
rv = app.get('/work/create')
assert rv.status_code == 200
- rv = app.get('/release/random')
- assert rv.status_code == 302
-
#rv = app.get('/release/00000000-0000-0000-4444-000000000002/changelog')
#assert rv.status_code == 200