summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-10-13 16:46:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-10-13 16:47:14 -0700
commitb9d2e62d9253af5bdafeef77f242682c0a951184 (patch)
tree5295dbfda091b7d7a924999609e9ade9cd238cee /python/tests
parent316b25455a6fc96023ac8457ec53fad3777d79af (diff)
downloadfatcat-b9d2e62d9253af5bdafeef77f242682c0a951184.tar.gz
fatcat-b9d2e62d9253af5bdafeef77f242682c0a951184.zip
web: editor username /u/<username> helper
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/web_editor.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/tests/web_editor.py b/python/tests/web_editor.py
index 58b21ddf..0d0679bb 100644
--- a/python/tests/web_editor.py
+++ b/python/tests/web_editor.py
@@ -22,3 +22,11 @@ def test_change_username(app_admin):
assert rv.status_code == 200
rv = app_admin.get('/auth/account')
assert b'admin-tmp' not in rv.data
+
+def test_username_redirect(app_admin):
+
+ rv = app_admin.get('/u/admin')
+ assert rv.status_code == 302
+
+ rv = app_admin.get('/u/bogus-not-registered')
+ assert rv.status_code == 404