auth tests

This commit is contained in:
2021-10-12 13:26:43 -06:00
parent a10aba5bdc
commit 2a160bf9b6
+7
View File
@@ -43,3 +43,10 @@ def test_login(client, auth):
def test_login_validate_input(auth, username, password, message):
response = auth.login(username, password)
assert message in response.data
def testz_logout(client, auth):
auth.login()
with client:
auth.logout()
assert 'user_id' not in session