Use a unified DATE constant for convenience
This commit is contained in:
parent
f0eb9d3b6f
commit
41f75f507d
6 changed files with 21 additions and 55 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue