Corrected task format in test

This commit is contained in:
Marcin-Ramotowski 2025-05-04 06:46:54 +00:00
parent 42edf4aeee
commit 81004a418d

View File

@ -8,7 +8,7 @@ def test_create_task(test_client, test_user):
response = test_client.post(
"/tasks",
data=json.dumps({"title": "Test Task", "description": "Opis", "due_date": "20-03-2025 12:00", "done": 0}),
data=json.dumps({"title": "Test Task", "description": "Opis", "due_date": "2025-03-20T12:00", "done": 0}),
headers=headers,
content_type="application/json",
)