Update event tests to use .id of an event instead of the .name.
The .id now also returns the namespace. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user