diff options
author | Lowell Alleman <lowell@kintyre.co> | 2021-03-24 16:28:33 -0400 |
---|---|---|
committer | kiorky <kiorky@cryptelium.net> | 2021-04-06 15:58:24 +0200 |
commit | 02bee4d794a2c77e6a8cf3a84a67ebe35602e061 (patch) | |
tree | 11a22f2368fdf59fbd492412e03295c14f6c0066 | |
parent | b21ae4d01e595cb01423e3074cf983327dedf73e (diff) | |
download | croniter-02bee4d794a2c77e6a8cf3a84a67ebe35602e061.tar.gz |
Fix (my own) spelling mistakes in unittests
-rwxr-xr-x | src/croniter/tests/test_croniter.py | 4 | ||||
-rwxr-xr-x | src/croniter/tests/test_croniter_range.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/croniter/tests/test_croniter.py b/src/croniter/tests/test_croniter.py index 4cfa12a..828fe64 100755 --- a/src/croniter/tests/test_croniter.py +++ b/src/croniter/tests/test_croniter.py @@ -1157,7 +1157,7 @@ class CroniterTest(base.TestCase): start = datetime(2020, 9, 24) cron = "0 13 8 1,4,7,10 wed" - # Expect exception because no explict range was provided. Therefore, the caller should be made aware that an implicit limit was hit. + # Expect exception because no explicit range was provided. Therefore, the caller should be made aware that an implicit limit was hit. ccron = croniter(cron, start, day_or=False) ccron._max_years_between_matches = 1 iterable = ccron.all_next() @@ -1168,7 +1168,7 @@ class CroniterTest(base.TestCase): n = next(iterable) self.assertEqual(n, datetime(2025, 1, 8, 13)) - # If the explictly given lookahead isn't enough to reach the next date, that's fine. The caller specified the maximum gap, so no just stop iteration + # If the explicitly given lookahead isn't enough to reach the next date, that's fine. The caller specified the maximum gap, so no just stop iteration iterable = croniter(cron, start, day_or=False, max_years_between_matches=2).all_next(datetime) with self.assertRaises(StopIteration): next(iterable) diff --git a/src/croniter/tests/test_croniter_range.py b/src/croniter/tests/test_croniter_range.py index 9441ea1..ac17487 100755 --- a/src/croniter/tests/test_croniter_range.py +++ b/src/croniter/tests/test_croniter_range.py @@ -76,7 +76,7 @@ class CroniterRangeTest(base.TestCase): list(croniter_range(f_start1, dt_stop1, "0 * * * *")) def test_timezone_dst(self): - """ Test across DST transition, which technially is a timzone change. """ + """ Test across DST transition, which technically is a timzone change. """ tz = pytz.timezone("US/Eastern") start = tz.localize(datetime(2020, 10, 30)) stop = tz.localize(datetime(2020, 11, 10)) @@ -144,7 +144,7 @@ class CroniterRangeTest(base.TestCase): croniter_nosec(cron) with self.assertRaises(CroniterBadCronError): - # Should similiarly fail because it's using the custom classs too + # Should similarly fail because the custom class rejects seconds expr i = croniter_range(datetime(2020, 1, 1), datetime(2020, 12, 31), cron, _croniter=croniter_nosec) next(i) |