Exemplo n.º 1
0
 def test_clean_callable_invalid(self):
     job = self.JobClass()
     job.callable = 'scheduler.tests.test_non_callable'
     with self.assertRaises(ValidationError):
         job.clean_callable()
Exemplo n.º 2
0
 def test_clean_callable_invalid(self):
     job = self.JobClass()
     job.callable = 'scheduler.tests.test_non_callable'
     with self.assertRaises(ValidationError):
         job.clean_callable()
Exemplo n.º 3
0
 def test_clean_callable(self):
     job = self.JobClass()
     job.callable = 'scheduler.tests.test_job'
     assert job.clean_callable() is None
Exemplo n.º 4
0
 def test_clean_callable(self):
     job = self.JobClass()
     job.callable = 'scheduler.tests.test_job'
     assert job.clean_callable() is None