Use a unified DATE constant for convenience

This commit is contained in:
Alexander Hess 2021-09-16 11:53:40 +02:00
commit 41f75f507d
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
6 changed files with 21 additions and 55 deletions

View file

@ -23,5 +23,5 @@ def random_timespan( # noqa:WPS211
def early_in_the_morning():
"""A randomized `datetime` object early in the morning."""
early = dt.datetime(test_config.YEAR, test_config.MONTH, test_config.DAY, 3, 0)
early = dt.datetime(*test_config.DATE, 3, 0)
return early + random_timespan(max_hours=2)