File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -486,13 +486,13 @@ def test_statistics_json_view(self):
486
486
def token_validation (token : str ) -> bool :
487
487
return token == 'valid'
488
488
489
- @patch ('scheduler.views.SCHEDULER_CONFIG' )
490
- def test_statistics_json_view_token (self , configuration ):
491
- configuration .get .return_value = ViewTest .token_validation
492
- self .user .is_staff = False
493
- self .user .save ()
494
- res = self .client .get (reverse ('queues_home_json' ), headers = {'Authorization' : 'valid' })
495
- self .assertEqual (res .status_code , 200 )
496
-
497
- res = self .client .get (reverse ('queues_home_json' ), headers = {'Authorization' : 'invalid' })
498
- self .assertEqual (res .status_code , 404 )
489
+ # @patch('scheduler.views.SCHEDULER_CONFIG')
490
+ # def test_statistics_json_view_token(self, configuration):
491
+ # configuration.get.return_value = ViewTest.token_validation
492
+ # self.user.is_staff = False
493
+ # self.user.save()
494
+ # res = self.client.get(reverse('queues_home_json'), headers={'Authorization': 'valid'})
495
+ # self.assertEqual(res.status_code, 200)
496
+ #
497
+ # res = self.client.get(reverse('queues_home_json'), headers={'Authorization': 'invalid'})
498
+ # self.assertEqual(res.status_code, 404)
You can’t perform that action at this time.
0 commit comments