From aaee1355c86479ea5612d4f14f4da4e5d063d14e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 9 Apr 2019 10:59:22 -0700 Subject: test for macaroon regression --- python/tests/web_auth.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/tests/web_auth.py b/python/tests/web_auth.py index 2fa9363b..b5839c6f 100644 --- a/python/tests/web_auth.py +++ b/python/tests/web_auth.py @@ -21,6 +21,9 @@ def test_ia_xauth_fail(full_app): data=dict(email="abcd@example.com", password="god")) assert rv.status_code == 401 + rv = app.get('/auth/account', follow_redirects=False) + assert rv.status_code == 302 + @responses.activate def test_ia_xauth(full_app): @@ -41,6 +44,9 @@ def test_ia_xauth(full_app): data=dict(email="abcd@example.com", password="god")) assert rv.status_code == 200 + rv = app.get('/auth/account', follow_redirects=False) + assert rv.status_code == 200 + def test_basic_auth_views(app): rv = app.get('/auth/login') -- cgit v1.2.3