예제 #1
0
 def test_expand_cronspec_eats_iterables(self):
     self.assertEqual(
         crontab._expand_cronspec(iter([1, 2, 3]), 100),
         {1, 2, 3},
     )
     self.assertEqual(
         crontab._expand_cronspec(iter([1, 2, 3]), 100, 1),
         {1, 2, 3},
     )
 def test_expand_cronspec_eats_iterables(self):
     self.assertEqual(
         crontab._expand_cronspec(iter([1, 2, 3]), 100),
         {1, 2, 3},
     )
     self.assertEqual(
         crontab._expand_cronspec(iter([1, 2, 3]), 100, 1),
         {1, 2, 3},
     )
예제 #3
0
파일: __init__.py 프로젝트: bodbdigr/celery
 def test_expand_cronspec_invalid_type(self):
     with self.assertRaises(TypeError):
         crontab._expand_cronspec(object(), 100)
예제 #4
0
 def test_expand_cronspec_invalid_type(self):
     with pytest.raises(TypeError):
         crontab._expand_cronspec(object(), 100)
예제 #5
0
 def test_expand_cronspec_eats_iterables(self):
     assert crontab._expand_cronspec(iter([1, 2, 3]), 100) == {1, 2, 3}
     assert crontab._expand_cronspec(iter([1, 2, 3]), 100, 1) == {1, 2, 3}
예제 #6
0
 def test_expand_cronspec_eats_iterables(self):
     assert crontab._expand_cronspec(iter([1, 2, 3]), 100) == {1, 2, 3}
     assert crontab._expand_cronspec(iter([1, 2, 3]), 100, 1) == {1, 2, 3}