auth tests
This commit is contained in:
@@ -43,3 +43,10 @@ def test_login(client, auth):
|
|||||||
def test_login_validate_input(auth, username, password, message):
|
def test_login_validate_input(auth, username, password, message):
|
||||||
response = auth.login(username, password)
|
response = auth.login(username, password)
|
||||||
assert message in response.data
|
assert message in response.data
|
||||||
|
|
||||||
|
def testz_logout(client, auth):
|
||||||
|
auth.login()
|
||||||
|
|
||||||
|
with client:
|
||||||
|
auth.logout()
|
||||||
|
assert 'user_id' not in session
|
||||||
|
|||||||
Reference in New Issue
Block a user