mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Chore: fix test comments
This commit is contained in:
		
							parent
							
								
									cf3645c296
								
							
						
					
					
						commit
						8dd355f6bf
					
				@ -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],
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user