mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	test_function_softbarcode: use pytest fixture
This commit is contained in:
		@@ -4,9 +4,11 @@ import escpos.printer as printer
 | 
				
			|||||||
import pytest
 | 
					import pytest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def test_soft_barcode():
 | 
					@pytest.fixture
 | 
				
			||||||
    """just execute soft_barcode
 | 
					def instance():
 | 
				
			||||||
    """
 | 
					    return printer.Dummy()
 | 
				
			||||||
    instance = printer.Dummy()
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def test_soft_barcode_ean8(instance):
 | 
				
			||||||
    instance.soft_barcode("ean8", "1234")
 | 
					    instance.soft_barcode("ean8", "1234")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user