return start and end for a checkpoint
This commit is contained in:
parent
fbd519488c
commit
f161bc005d
2 changed files with 6 additions and 4 deletions
|
@ -8,6 +8,7 @@ import teamanalysis.time
|
|||
(datetime.datetime(2015, 1, 5, 2, 5, 5, 7835), datetime.datetime(2015, 1, 5, 0, 0, 0, 1)),
|
||||
])
|
||||
def test_checkpoint(when, expected):
|
||||
checkpoint = teamanalysis.time.get_checkpoint(when)
|
||||
assert checkpoint == expected
|
||||
start, end = teamanalysis.time.get_checkpoint(when)
|
||||
assert start == expected
|
||||
assert end == start + datetime.timedelta(days=7)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue