diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-13 16:46:23 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-13 16:47:14 -0700 |
commit | b9d2e62d9253af5bdafeef77f242682c0a951184 (patch) | |
tree | 5295dbfda091b7d7a924999609e9ade9cd238cee /python/tests | |
parent | 316b25455a6fc96023ac8457ec53fad3777d79af (diff) | |
download | fatcat-b9d2e62d9253af5bdafeef77f242682c0a951184.tar.gz fatcat-b9d2e62d9253af5bdafeef77f242682c0a951184.zip |
web: editor username /u/<username> helper
Diffstat (limited to 'python/tests')
-rw-r--r-- | python/tests/web_editor.py | 8 |
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 |