mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:29:16 +02:00
Moved test date check into a dedicated function
This commit is contained in:
parent
b3de851e6f
commit
32445c5113
8 changed files with 59 additions and 52 deletions
6
api/tests/test_test_utils.py
Normal file
6
api/tests/test_test_utils.py
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue