コード例 #1
0
ファイル: test_schedules.py プロジェクト: JohnSpeno/celery
 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},
     )
コード例 #2
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},
     )
コード例 #3
0
ファイル: __init__.py プロジェクト: bodbdigr/celery
 def test_expand_cronspec_invalid_type(self):
     with self.assertRaises(TypeError):
         crontab._expand_cronspec(object(), 100)
コード例 #4
0
ファイル: test_schedules.py プロジェクト: idahogray/celery
 def test_expand_cronspec_invalid_type(self):
     with pytest.raises(TypeError):
         crontab._expand_cronspec(object(), 100)
コード例 #5
0
ファイル: test_schedules.py プロジェクト: idahogray/celery
 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
ファイル: test_schedules.py プロジェクト: bryson/celery
 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}