Chore: fix test comments

This commit is contained in:
shamoon 2024-10-08 23:36:09 -07:00
parent cf3645c296
commit 8dd355f6bf
No known key found for this signature in database

View File

@ -306,11 +306,11 @@ class TestWorkflows(DirectoriesMixin, FileSystemAssertsMixin, APITestCase):
def test_workflow_match_multiple(self): def test_workflow_match_multiple(self):
""" """
GIVEN: GIVEN:
- Multiple existing workflow - Multiple existing workflows
WHEN: WHEN:
- File that matches is consumed - File that matches is consumed
THEN: THEN:
- Template overrides are applied with subsequent templates overwriting previous values - Workflow overrides are applied with subsequent workflows overwriting previous values
or merging if multiple or merging if multiple
""" """
trigger1 = WorkflowTrigger.objects.create( trigger1 = WorkflowTrigger.objects.create(
@ -373,12 +373,12 @@ class TestWorkflows(DirectoriesMixin, FileSystemAssertsMixin, APITestCase):
None, None,
) )
document = Document.objects.first() document = Document.objects.first()
# template 1 # workflow 1
self.assertEqual(document.document_type, self.dt) self.assertEqual(document.document_type, self.dt)
# template 2 # workflow 2
self.assertEqual(document.correspondent, self.c2) self.assertEqual(document.correspondent, self.c2)
self.assertEqual(document.storage_path, self.sp) self.assertEqual(document.storage_path, self.sp)
# template 1 & 2 # workflow 1 & 2
self.assertEqual( self.assertEqual(
list(document.tags.all()), list(document.tags.all()),
[self.t1, self.t2, self.t3], [self.t1, self.t2, self.t3],