dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.71k stars 960 forks source link

fix test_until_time failure when run early #563

Closed emollier closed 1 year ago

emollier commented 1 year ago

Since introduction of the "until" job scheduling method to apply deadlines, the test suite fails at test_until_time when run between midnight and 5am local hour. This patch ought to ensure the deadline is always one hour ago independently of the time of the day, or night. This should resolve Github issue #488.

coveralls commented 1 year ago

Coverage Status

Coverage: 99.711%. Remained the same when pulling ea4656db76272bed230e62a667207e45f61c7563 on emollier:fix-test-until into a5036cffdaa302ef04027a603cf386c7833ac1f4 on dbader:master.

SijmenHuizenga commented 1 year ago

Thank you so much for this pr!