diff options
-rw-r--r-- | src/croniter/croniter.py | 4 | ||||
-rw-r--r-- | src/croniter/tests/test_croniter_hash.py | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/croniter/croniter.py b/src/croniter/croniter.py index a7dff11..8c1880e 100644 --- a/src/croniter/croniter.py +++ b/src/croniter/croniter.py @@ -909,10 +909,6 @@ class HashExpander: if m['hash_type'] == 'h' and hash_id is None: raise CroniterBadCronError('Hashed definitions must include hash_id') - - if m['range_begin'] and m['range_end']: - if int(m['range_begin']) >= int(m['range_end']): - raise CroniterBadCronError('Range end must be greater than range begin') if m['range_begin'] and m['range_end']: if int(m['range_begin']) >= int(m['range_end']): diff --git a/src/croniter/tests/test_croniter_hash.py b/src/croniter/tests/test_croniter_hash.py index cd1e365..b8a4e7b 100644 --- a/src/croniter/tests/test_croniter_hash.py +++ b/src/croniter/tests/test_croniter_hash.py @@ -98,16 +98,6 @@ class CroniterHashTest(CroniterHashBase): self._test_iter( 'H(30-59)/10 H * * *', datetime(2020, 1, 1, 11, 31), timedelta(minutes=10) ) - - def test_hash_invalid_range(self): - """Test validation logic for range_begin and range_end values""" - try: - self._test_iter( - 'H(11-10) H * * *', datetime(2020, 1, 1, 11, 31), timedelta(minutes=10) - ) - except (CroniterBadCronError) as ex: - self.assertEqual("{0}".format(ex), - 'Range end must be greater than range begin') def test_hash_invalid_range(self): """Test validation logic for range_begin and range_end values""" |