python-escpos/test/test_function_softbarcode.py

18 lines
314 B
Python
Raw Normal View History

#!/usr/bin/python
import escpos.printer as printer
import pytest
@pytest.fixture
def instance():
return printer.Dummy()
def test_soft_barcode_ean8(instance):
instance.soft_barcode("ean8", "1234")
def test_soft_barcode_ean8_nocenter(instance):
instance.soft_barcode("ean8", "1234", center=False)