diff options
author | Mathieu Le Marec - Pasquet <kiorky@cryptelium.net> | 2024-12-06 22:04:05 +0100 |
---|---|---|
committer | Mathieu Le Marec - Pasquet <kiorky@cryptelium.net> | 2023-04-12 18:02:23 +0200 |
commit | 8abc2d605531bec90802d3b009e97f41b26d28e4 (patch) | |
tree | aba0a100234d4fa14fda0ce19d06a1eb49299dc8 | |
parent | 027366fb148a180dcce0baa0d7d634fc73dbfe20 (diff) | |
download | croniter-8abc2d605531bec90802d3b009e97f41b26d28e4.tar.gz |
Lint
-rw-r--r-- | src/croniter/croniter.py | 2 | ||||
-rw-r--r-- | src/croniter/tests/test_croniter_hash.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/croniter/croniter.py b/src/croniter/croniter.py index ba07b5c..02e3688 100644 --- a/src/croniter/croniter.py +++ b/src/croniter/croniter.py @@ -909,7 +909,7 @@ 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') diff --git a/src/croniter/tests/test_croniter_hash.py b/src/croniter/tests/test_croniter_hash.py index 8119d95..b8a4e7b 100644 --- a/src/croniter/tests/test_croniter_hash.py +++ b/src/croniter/tests/test_croniter_hash.py @@ -98,7 +98,7 @@ 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: |