Refactor dates being passed around

I believe this way is nicer to read, we don't have to change between
datetimes and strings and back.
This commit is contained in:
David McDonald
2020-02-19 14:23:33 +00:00
parent 6226d9e122
commit 148a5ab456
3 changed files with 16 additions and 18 deletions

View File

@@ -296,7 +296,7 @@ def test_get_key_and_size_of_letters_to_be_sent_to_print(notify_api, mocker, sam
{'ContentLength': 3},
])
results = get_key_and_size_of_letters_to_be_sent_to_print('2020-02-17')
results = get_key_and_size_of_letters_to_be_sent_to_print(datetime.now() - timedelta(minutes=30))
assert mock_s3.call_count == 3
mock_s3.assert_has_calls(