mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 07:27:49 +03:00 
			
		
		
		
	Removed test parameter
This commit is contained in:
		
							parent
							
								
									076b93f497
								
							
						
					
					
						commit
						e152b2b5eb
					
				|  | @ -75,30 +75,28 @@ def test_get_texture_size( | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @pytest.mark.parametrize( | @pytest.mark.parametrize( | ||||||
|     "etalon_path, file_path, expected_mode, epsilon", |     "file_path, expected_mode, epsilon", | ||||||
|     [ |     [ | ||||||
|         ("Tests/images/vtf_i8.png", "Tests/images/vtf_i8.vtf", "L", 0), |         ("Tests/images/vtf_i8.vtf", "L", 0), | ||||||
|         ("Tests/images/vtf_a8.png", "Tests/images/vtf_a8.vtf", "RGBA", 0), |         ("Tests/images/vtf_a8.vtf", "RGBA", 0), | ||||||
|         ("Tests/images/vtf_ia88.png", "Tests/images/vtf_ia88.vtf", "LA", 0), |         ("Tests/images/vtf_ia88.vtf", "LA", 0), | ||||||
|         ("Tests/images/vtf_uv88.png", "Tests/images/vtf_uv88.vtf", "RGB", 0), |         ("Tests/images/vtf_uv88.vtf", "RGB", 0), | ||||||
|         ("Tests/images/vtf_rgb888.png", "Tests/images/vtf_rgb888.vtf", "RGB", 0), |         ("Tests/images/vtf_rgb888.vtf", "RGB", 0), | ||||||
|         ("Tests/images/vtf_bgr888.png", "Tests/images/vtf_bgr888.vtf", "RGB", 0), |         ("Tests/images/vtf_bgr888.vtf", "RGB", 0), | ||||||
|         ("Tests/images/vtf_dxt1.png", "Tests/images/vtf_dxt1.vtf", "RGBA", 3), |         ("Tests/images/vtf_dxt1.vtf", "RGBA", 3), | ||||||
|         ("Tests/images/vtf_dxt1A.png", "Tests/images/vtf_dxt1A.vtf", "RGBA", 8), |         ("Tests/images/vtf_dxt1A.vtf", "RGBA", 8), | ||||||
|         ("Tests/images/vtf_rgba8888.png", "Tests/images/vtf_rgba8888.vtf", "RGBA", 0), |         ("Tests/images/vtf_rgba8888.vtf", "RGBA", 0), | ||||||
|     ], |     ], | ||||||
| ) | ) | ||||||
| def test_vtf_read( | def test_vtf_read(file_path: str, expected_mode: str, epsilon: int) -> None: | ||||||
|     etalon_path: str, file_path: str, expected_mode: str, epsilon: int |  | ||||||
| ) -> None: |  | ||||||
|     with Image.open(file_path) as f: |     with Image.open(file_path) as f: | ||||||
|         assert f.mode == expected_mode |         assert f.mode == expected_mode | ||||||
|         with Image.open(etalon_path) as e: |         with Image.open(file_path.replace(".vtf", ".png")) as e: | ||||||
|             converted_e = e.convert(expected_mode) |             converted_e = e.convert(expected_mode) | ||||||
|         if epsilon: |         if epsilon: | ||||||
|             assert_image_similar(converted_e, f, epsilon) |             assert_image_similar(f, converted_e, epsilon) | ||||||
|         else: |         else: | ||||||
|             assert_image_equal(converted_e, f) |             assert_image_equal(f, converted_e) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def test_invalid_file() -> None: | def test_invalid_file() -> None: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user