@@ -756,7 +756,7 @@ def test_schedule_update_anon_user_not_permitted(self, mock_create_new_job):
756756
757757 self .assertNotEqual (response .status_code , status .HTTP_200_OK )
758758 self .assertEqual (response .status_code , status .HTTP_403_FORBIDDEN )
759- self .assertEqual (self .schedule1 .run_interval , 24 )
759+ self .assertEqual (self .schedule1 .run_interval , 1440 )
760760
761761 @patch ("vulnerabilities.models.PipelineSchedule.create_new_job" )
762762 def test_schedule_update_with_staff_token_not_permitted (self , mock_create_new_job ):
@@ -771,20 +771,20 @@ def test_schedule_update_with_staff_token_not_permitted(self, mock_create_new_jo
771771
772772 self .assertNotEqual (response .status_code , status .HTTP_200_OK )
773773 self .assertEqual (response .status_code , status .HTTP_403_FORBIDDEN )
774- self .assertEqual (self .schedule1 .run_interval , 24 )
774+ self .assertEqual (self .schedule1 .run_interval , 1440 )
775775
776776 @patch ("vulnerabilities.models.PipelineSchedule.create_new_job" )
777777 def test_schedule_update_with_staff_session_permitted (self , mock_create_new_job ):
778778 mock_create_new_job .return_value = "work-id7"
779779 self .client .login (username = "admin_with_session" , password = "adminpassword" )
780780
781- data = {"run_interval" : 2 }
781+ data = {"run_interval" : 5 }
782782 response = self .client .patch ("/api/v2/pipelines/test_pipeline/" , data , format = "json" )
783783 self .schedule1 .refresh_from_db ()
784784
785785 self .assertEqual (response .status_code , status .HTTP_200_OK )
786786 self .assertNotEqual (response .status_code , status .HTTP_403_FORBIDDEN )
787- self .assertEqual (self .schedule1 .run_interval , 2 )
787+ self .assertEqual (self .schedule1 .run_interval , 5 )
788788
789789
790790class CodeFixV2APITest (APITestCase ):
0 commit comments