Skip to content

Commit

Permalink
feat(event): fix time in test
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jun 8, 2023
1 parent ca9c0c1 commit 8b76b27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lacommunaute/event/tests/tests_views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json
from datetime import datetime, timedelta
from datetime import datetime, time, timedelta

from dateutil.relativedelta import relativedelta
from django.test import TestCase
Expand Down Expand Up @@ -219,7 +219,7 @@ def test_json_response(self):
"location": event.location,
"description": event.description,
"poster_id": event.poster.id,
"time": "10:00:00",
"time": str(time(10)),
"year": event.date.year,
"month": event.date.month,
"day": event.date.day,
Expand Down

0 comments on commit 8b76b27

Please sign in to comment.