Fix tests

This commit is contained in:
Jan Dittberner 2023-04-29 13:10:25 +02:00
parent 866f6c8083
commit d88745f46b
11 changed files with 35 additions and 116 deletions

View file

@ -212,7 +212,7 @@ class GroupTest(TestCaseWithCeleryTasks):
group.delete()
self.assertEqual(len(Group.objects.all()), 0)
self.assertEqual(len(TaskResult.objects.all()), 2)
tr = TaskResult.objects.first()
tr = TaskResult.objects.order_by("created").first()
self.assertEqual(tr.creator, "handle_group_created")