Skip to content

Commit

Permalink
fix(maintenance): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicham committed Mar 21, 2024
1 parent 2c92edc commit 7abb487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin_cohort/tests/tests_maintenance_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def setUp(self):
self.non_safe_method_url = '/accesses/roles/'
self.sjs_etl_callback_url = '/cohort/cohorts/'
self.maintenance_url = '/maintenances/'
self.accounts_url = '/accounts/'
self.auth_url = '/auth/'

enable_maintenance(5)

Expand Down Expand Up @@ -63,6 +63,6 @@ def test_maintenance_request(self):
self.assertNotEqual(response.status_code, status.HTTP_503_SERVICE_UNAVAILABLE)

def test_accounts_request(self):
request = self.factory.post(path=self.accounts_url, data={})
request = self.factory.post(path=self.auth_url, data={})
response = self.middleware(request)
self.assertNotEqual(response.status_code, status.HTTP_503_SERVICE_UNAVAILABLE)

0 comments on commit 7abb487

Please sign in to comment.