From a4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 18 Sep 2019 17:52:10 -0700 Subject: python webface impl token generation --- python/tests/web_auth.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/tests') 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 -- cgit v1.2.3