Beispiel #1
0
 def test_cron_entry_validation_fails(self):
     try:
         command = ScheduledCommand(
             name='load-test_data', arg_string='', cron_entry='* F F * *'
         )
         command.clean_fields()
         self.fail('No ValidationError raised by invalid cron entry')
     except ValidationError:
         pass
Beispiel #2
0
 def test_command_validation_fails(self):
     try:
         command = ScheduledCommand(
             name='non_existent_command', arg_string='', cron_entry='* * * * *'
         )
         command.clean_fields()
         self.fail('No ValidationError raised by invalid command')
     except ValidationError:
         pass
Beispiel #3
0
 def test_command_validation(self):
     command = ScheduledCommand(
         name='load_test_data', arg_string='', cron_entry='* * * * *'
     )
     command.clean_fields()