Skip to content

Commit

Permalink
[qa] fix tests log_out before deleting session
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy committed Oct 7, 2024
1 parent 0d619f3 commit 1657d82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions tests/auth/test_auth_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/auth/test_permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 1657d82

Please sign in to comment.