Update tests at test_function_softbarcode
This commit is contained in:
parent
5acc479346
commit
707ef39e05
@ -13,13 +13,13 @@ def instance():
|
|||||||
def test_soft_barcode_ean8_invalid(instance):
|
def test_soft_barcode_ean8_invalid(instance):
|
||||||
"""test with an invalid barcode"""
|
"""test with an invalid barcode"""
|
||||||
with pytest.raises(barcode.errors.BarcodeError):
|
with pytest.raises(barcode.errors.BarcodeError):
|
||||||
instance.soft_barcode("ean8", "1234")
|
instance.barcode("1234", "ean8", force_software=True)
|
||||||
|
|
||||||
|
|
||||||
def test_soft_barcode_ean8(instance):
|
def test_soft_barcode_ean8(instance):
|
||||||
"""test with a valid ean8 barcode"""
|
"""test with a valid ean8 barcode"""
|
||||||
instance.soft_barcode("ean8", "1234567")
|
instance.barcode("1234567", "ean8", force_software=True)
|
||||||
|
|
||||||
|
|
||||||
def test_soft_barcode_ean8_nocenter(instance):
|
def test_soft_barcode_ean8_nocenter(instance):
|
||||||
instance.soft_barcode("ean8", "1234567", center=False)
|
instance.barcode("1234567", "ean8", align_ct=False, force_software=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user