The previous HistoricalIterator unit test expected results were not resilient to the time of day the test ran. So, just after UTC midnight the results would be different than just after UTC midnight + 12hrs.
This change updates the unit tests to use explicit times by overriding time.Now using monkey.Patch so that we can test independently of time of day. This change adds similar sequence handling to the DailyIterator unit tests also.
The previous
HistoricalIterator
unit test expected results were not resilient to the time of day the test ran. So, just after UTC midnight the results would be different than just after UTC midnight + 12hrs.This change updates the unit tests to use explicit times by overriding
time.Now
usingmonkey.Patch
so that we can test independently of time of day. This change adds similar sequence handling to theDailyIterator
unit tests also.This change is![Reviewable](https://reviewable.io/review_button.svg)