mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Parametrized test
This commit is contained in:
		
							parent
							
								
									f5e9252b12
								
							
						
					
					
						commit
						a5ef2b4499
					
				| 
						 | 
				
			
			@ -873,8 +873,9 @@ def test_wide_line_dot():
 | 
			
		|||
    assert_image_similar(im, Image.open(expected), 1)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def test_line_joint():
 | 
			
		||||
    for xy in [
 | 
			
		||||
@pytest.mark.parametrize(
 | 
			
		||||
    "xy",
 | 
			
		||||
    [
 | 
			
		||||
        [
 | 
			
		||||
            (400, 280),
 | 
			
		||||
            (380, 280),
 | 
			
		||||
| 
						 | 
				
			
			@ -951,7 +952,9 @@ def test_line_joint():
 | 
			
		|||
            250,
 | 
			
		||||
            100,
 | 
			
		||||
        ],
 | 
			
		||||
    ]:
 | 
			
		||||
    ],
 | 
			
		||||
)
 | 
			
		||||
def test_line_joint(xy):
 | 
			
		||||
    im = Image.new("RGB", (500, 325))
 | 
			
		||||
    draw = ImageDraw.Draw(im)
 | 
			
		||||
    expected = "Tests/images/imagedraw_line_joint_curve.png"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user