* extends test for new behaviour of newly created entries
This commit is contained in:
2022-11-25 09:05:06 +01:00
parent e048d44c95
commit f2c5e7ae01
4 changed files with 4 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ class InterventionWorkflowTestCase(BaseWorkflowTestCase):
self.assertEqual(1, obj.log.count())
self.assertEqual(obj.log.first().action, UserAction.CREATED)
self.assertEqual(obj.log.first().user, self.superuser)
self.assertEqual(obj.created, obj.modified)
except ObjectDoesNotExist:
# Fail if there is no such object
self.fail()