summaryrefslogtreecommitdiffstats
path: root/python/tests/web_auth.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-18 17:52:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-18 18:42:26 -0700
commita4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5 (patch)
tree6bec961533bb2d1c09dfb203413b2d75d01875ce /python/tests/web_auth.py
parent9d1e2ef1c1682f49ce666a012fad70d50cb4f376 (diff)
downloadfatcat-a4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5.tar.gz
fatcat-a4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5.zip
python webface impl token generation
Diffstat (limited to 'python/tests/web_auth.py')
-rw-r--r--python/tests/web_auth.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/tests/web_auth.py b/python/tests/web_auth.py
index 029803c3..2c545b6b 100644
--- a/python/tests/web_auth.py
+++ b/python/tests/web_auth.py
@@ -54,3 +54,11 @@ def test_basic_auth_views(app):
rv = app.get('/auth/logout')
assert rv.status_code == 200
+
+def test_auth_token(app_admin):
+
+ rv = app_admin.get('/auth/account', follow_redirects=False)
+ assert rv.status_code == 200
+
+ rv = app_admin.post('/auth/create_token', follow_redirects=False)
+ assert rv.status_code == 200