From 1657d82682d5fff0f13b5a3e9fd7921529d07936 Mon Sep 17 00:00:00 2001 From: Evan Blaudy Date: Tue, 8 Oct 2024 01:10:43 +0200 Subject: [PATCH] [qa] fix tests log_out before deleting session --- tests/auth/test_auth_route.py | 9 +-------- tests/auth/test_permission.py | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/auth/test_auth_route.py b/tests/auth/test_auth_route.py index 9aa6496aff..bde8bd34f4 100644 --- a/tests/auth/test_auth_route.py +++ b/tests/auth/test_auth_route.py @@ -24,17 +24,10 @@ def setUp(self): "email": self.person_dict["email"], "password": "secretpassword", } - try: - self.get("auth/logout") - except AssertionError: - pass def tearDown(self): + self.log_out() super(AuthTestCase, self).tearDown() - try: - self.get("auth/logout") - except AssertionError: - pass def get_auth_headers(self, tokens): return { diff --git a/tests/auth/test_permission.py b/tests/auth/test_permission.py index 65419a23fc..cb7311629d 100644 --- a/tests/auth/test_permission.py +++ b/tests/auth/test_permission.py @@ -15,8 +15,8 @@ def setUp(self): self.project_id = self.project.id def tearDown(self): - super(PermissionTestCase, self).tearDown() self.log_out() + super(PermissionTestCase, self).tearDown() def test_admin_can_create_project(self): self.log_in(self.user["email"])