Skip to content

Commit

Permalink
fiex tests
Browse files Browse the repository at this point in the history
  • Loading branch information
6arash6 committed Jul 11, 2024
1 parent 61f41a8 commit 67d58ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ def test_delete_account(self):
account = self._create_accounts(1)[0]
resp = self.client.delete(f"{BASE_URL}/{account.id}")
self.assertEqual(resp.status_code, status.HTTP_204_NO_CONTENT)



def test_method_not_allowed(self):
"""It should not allow an illegal method call"""
resp = self.client.delete(BASE_URL)
Expand All @@ -192,7 +191,7 @@ def test_security_headers(self):
self.assertEqual(response.status_code, status.HTTP_200_OK)
headers = {
'X-Frame-Options': 'SAMEORIGIN',
#'X-XSS-Protection': '1; mode=block',
# 'X-XSS-Protection': '1; mode=block',
'X-Content-Type-Options': 'nosniff',
'Content-Security-Policy': 'default-src \'self\'; object-src \'none\'',
'Referrer-Policy': 'strict-origin-when-cross-origin'
Expand Down

0 comments on commit 67d58ee

Please sign in to comment.