2018-05-14 23:03:07 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import escpos.printer as printer
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
2020-05-10 12:05:33 +00:00
|
|
|
@pytest.fixture
|
|
|
|
def instance():
|
|
|
|
return printer.Dummy()
|
|
|
|
|
|
|
|
|
|
|
|
def test_soft_barcode_ean8(instance):
|
2018-05-14 23:03:07 +00:00
|
|
|
instance.soft_barcode("ean8", "1234")
|
|
|
|
|
2020-05-10 12:06:00 +00:00
|
|
|
|
|
|
|
def test_soft_barcode_ean8_nocenter(instance):
|
|
|
|
instance.soft_barcode("ean8", "1234", center=False)
|