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"])