add more tests
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
		
							parent
							
								
									08fbcf5158
								
							
						
					
					
						commit
						e214f719c9
					
				
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/documents/tests/samples/barcodes/several-patcht-codes.pdf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/documents/tests/samples/barcodes/several-patcht-codes.pdf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@ -229,6 +229,26 @@ class TestTasks(DirectoriesMixin, TestCase):
 | 
				
			|||||||
        pages = tasks.scan_file_for_separating_barcodes(test_file)
 | 
					        pages = tasks.scan_file_for_separating_barcodes(test_file)
 | 
				
			||||||
        self.assertEqual(pages, [1])
 | 
					        self.assertEqual(pages, [1])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_scan_file_for_separating_barcodes4(self):
 | 
				
			||||||
 | 
					        test_file = os.path.join(
 | 
				
			||||||
 | 
					            os.path.dirname(__file__),
 | 
				
			||||||
 | 
					            "samples",
 | 
				
			||||||
 | 
					            "barcodes",
 | 
				
			||||||
 | 
					            "several-patcht-codes.pdf",
 | 
				
			||||||
 | 
					        )
 | 
				
			||||||
 | 
					        pages = tasks.scan_file_for_separating_barcodes(test_file)
 | 
				
			||||||
 | 
					        self.assertEqual(pages, [2, 5])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_scan_file_for_separating_barcodes_upsidedown(self):
 | 
				
			||||||
 | 
					        test_file = os.path.join(
 | 
				
			||||||
 | 
					            os.path.dirname(__file__),
 | 
				
			||||||
 | 
					            "samples",
 | 
				
			||||||
 | 
					            "barcodes",
 | 
				
			||||||
 | 
					            "patch-code-t-middle_reverse.pdf",
 | 
				
			||||||
 | 
					        )
 | 
				
			||||||
 | 
					        pages = tasks.scan_file_for_separating_barcodes(test_file)
 | 
				
			||||||
 | 
					        self.assertEqual(pages, [1])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_scan_file_for_separating_qr_barcodes(self):
 | 
					    def test_scan_file_for_separating_qr_barcodes(self):
 | 
				
			||||||
        test_file = os.path.join(
 | 
					        test_file = os.path.join(
 | 
				
			||||||
            os.path.dirname(__file__),
 | 
					            os.path.dirname(__file__),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user