diff --git a/scheduler/tests/test_views.py b/scheduler/tests/test_views.py index 628d035..bb66e40 100644 --- a/scheduler/tests/test_views.py +++ b/scheduler/tests/test_views.py @@ -486,13 +486,13 @@ def test_statistics_json_view(self): def token_validation(token: str) -> bool: return token == 'valid' - @patch('scheduler.views.SCHEDULER_CONFIG') - def test_statistics_json_view_token(self, configuration): - configuration.get.return_value = ViewTest.token_validation - self.user.is_staff = False - self.user.save() - res = self.client.get(reverse('queues_home_json'), headers={'Authorization': 'valid'}) - self.assertEqual(res.status_code, 200) - - res = self.client.get(reverse('queues_home_json'), headers={'Authorization': 'invalid'}) - self.assertEqual(res.status_code, 404) + # @patch('scheduler.views.SCHEDULER_CONFIG') + # def test_statistics_json_view_token(self, configuration): + # configuration.get.return_value = ViewTest.token_validation + # self.user.is_staff = False + # self.user.save() + # res = self.client.get(reverse('queues_home_json'), headers={'Authorization': 'valid'}) + # self.assertEqual(res.status_code, 200) + # + # res = self.client.get(reverse('queues_home_json'), headers={'Authorization': 'invalid'}) + # self.assertEqual(res.status_code, 404)