Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a defined sourceTime when using parsedatetime
When using the parsedatetime functionalities freezegun is not used to compute the source time. If the tests are run too close to midnight it might result in the computation of 'tomorrow' being another day then now() + 24h (because time.localtime() will be the next day) … thus failing test_default_due2. Setting sourceTime when calling parsedatime will ensure the same base is used for all tests.
- Loading branch information