Moved test date check into a dedicated function

This commit is contained in:
Eliot Berriot 2019-07-29 10:44:01 +02:00
parent b3de851e6f
commit 32445c5113
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
8 changed files with 59 additions and 52 deletions

View file

@ -0,0 +1,6 @@
from . import utils as test_utils
def test_to_api_date(now):
assert test_utils.to_api_date(now) == now.isoformat().split("+")[0] + "Z"