summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-09 10:59:22 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-09 10:59:22 -0700
commitaaee1355c86479ea5612d4f14f4da4e5d063d14e (patch)
tree733c947d53eb17ca9c5b896c60024b95d69dee86 /python/tests
parent81aa93d574f9c8b2d92a47d41dd556cf2c3e8a37 (diff)
downloadfatcat-aaee1355c86479ea5612d4f14f4da4e5d063d14e.tar.gz
fatcat-aaee1355c86479ea5612d4f14f4da4e5d063d14e.zip
test for macaroon regression
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/web_auth.py6
1 files changed, 6 insertions, 0 deletions
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')