From ff38fd93edac4bbd01e825cc9378c8530fdbf344 Mon Sep 17 00:00:00 2001
From: Jonas Braathen <jonas.braathen@usit.uio.no>
Date: Fri, 3 Sep 2021 00:18:25 +0200
Subject: [PATCH] Give scheduletask fixture a non-naive datetime to squelch
 warning

---
 greg/tests/models/test_scheduletask.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/greg/tests/models/test_scheduletask.py b/greg/tests/models/test_scheduletask.py
index 37765c77..5b2e199d 100644
--- a/greg/tests/models/test_scheduletask.py
+++ b/greg/tests/models/test_scheduletask.py
@@ -5,7 +5,7 @@ from greg.models import ScheduleTask
 
 @pytest.fixture
 def scheduletask():
-    ScheduleTask.objects.create(name="foo", last_completed="2020-10-15 23:04")
+    ScheduleTask.objects.create(name="foo", last_completed="2020-10-15T23:04Z")
     return ScheduleTask.objects.get(id=1)
 
 
-- 
GitLab