diff --git a/mayan/apps/cabinets/tests/test_events.py b/mayan/apps/cabinets/tests/test_events.py index ff4cc0523e..e402b69403 100644 --- a/mayan/apps/cabinets/tests/test_events.py +++ b/mayan/apps/cabinets/tests/test_events.py @@ -27,7 +27,7 @@ class CabinetsEventsTestCase(GenericDocumentTestCase): self.assertEqual(Action.objects.last().target, self.document) self.assertEqual( Action.objects.last().verb, - event_cabinets_add_document.name + event_cabinets_add_document.id ) def test_document_cabinet_remove_event(self): @@ -38,5 +38,5 @@ class CabinetsEventsTestCase(GenericDocumentTestCase): self.assertEqual(Action.objects.first().target, self.document) self.assertEqual( Action.objects.first().verb, - event_cabinets_remove_document.name + event_cabinets_remove_document.id ) diff --git a/mayan/apps/document_parsing/tests/test_events.py b/mayan/apps/document_parsing/tests/test_events.py index 073cc90663..b68db7a558 100644 --- a/mayan/apps/document_parsing/tests/test_events.py +++ b/mayan/apps/document_parsing/tests/test_events.py @@ -24,7 +24,7 @@ class DocumentParsingEventsTestCase(GenericDocumentTestCase): ) self.assertEqual( Action.objects.last().verb, - event_parsing_document_version_submit.name + event_parsing_document_version_submit.id ) def test_document_version_finish_event(self): @@ -35,5 +35,5 @@ class DocumentParsingEventsTestCase(GenericDocumentTestCase): ) self.assertEqual( Action.objects.first().verb, - event_parsing_document_version_finish.name + event_parsing_document_version_finish.id ) diff --git a/mayan/apps/ocr/tests/test_events.py b/mayan/apps/ocr/tests/test_events.py index 9d302df8f0..dc329afbe7 100644 --- a/mayan/apps/ocr/tests/test_events.py +++ b/mayan/apps/ocr/tests/test_events.py @@ -19,7 +19,7 @@ class OCREventsTestCase(GenericDocumentTestCase): ) self.assertEqual( Action.objects.last().verb, - event_ocr_document_version_submit.name + event_ocr_document_version_submit.id ) def test_document_version_finish_event(self): @@ -31,5 +31,5 @@ class OCREventsTestCase(GenericDocumentTestCase): ) self.assertEqual( Action.objects.first().verb, - event_ocr_document_version_finish.name + event_ocr_document_version_finish.id )