mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Modify test for PNG image with alpha
This commit is contained in:
		| @@ -181,13 +181,14 @@ class TestParser(DirectoriesMixin, TestCase): | |||||||
|  |  | ||||||
|         self.assertContainsStrings(parser.get_text(), ["This is a test document."]) |         self.assertContainsStrings(parser.get_text(), ["This is a test document."]) | ||||||
|  |  | ||||||
|     def test_image_simple_alpha_fail(self): |     def test_image_simple_alpha(self): | ||||||
|         parser = RasterisedDocumentParser(None) |         parser = RasterisedDocumentParser(None) | ||||||
|  |  | ||||||
|         def f(): |  | ||||||
|         parser.parse(os.path.join(self.SAMPLE_FILES, "simple-alpha.png"), "image/png") |         parser.parse(os.path.join(self.SAMPLE_FILES, "simple-alpha.png"), "image/png") | ||||||
|  |  | ||||||
|         self.assertRaises(ParseError, f) |         self.assertTrue(os.path.isfile(parser.archive_path)) | ||||||
|  |  | ||||||
|  |         self.assertContainsStrings(parser.get_text(), ["This is a test document."]) | ||||||
|  |  | ||||||
|     def test_image_calc_a4_dpi(self): |     def test_image_calc_a4_dpi(self): | ||||||
|         parser = RasterisedDocumentParser(None) |         parser = RasterisedDocumentParser(None) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Martin Müller
					Martin Müller