From 2a160bf9b65bf41e811d8252722b4669c476fc6d Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Tue, 12 Oct 2021 13:26:43 -0600 Subject: [PATCH] auth tests --- tests/test_auth.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_auth.py b/tests/test_auth.py index 4e50d2b..fde331c 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -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