Exemplo n.º 1
0
def test_ls_codepage_converted(capsys):
    from thermalprinter.constants import CodePageConverted
    from thermalprinter.tools import ls

    ls(CodePageConverted)
    out, _ = capsys.readouterr()
    assert out.strip() == """---CONST CodePageConverted
Exemplo n.º 2
0
def test_ls_chinese(capsys):
    from thermalprinter.constants import Chinese
    from thermalprinter.tools import ls

    ls(Chinese)
    out, _ = capsys.readouterr()
    assert out.strip() == """---CONST Chinese
Exemplo n.º 3
0
def test_ls_2_constants(capsys):
    from thermalprinter.constants import BarCodePosition, Chinese
    from thermalprinter.tools import ls

    ls(BarCodePosition, Chinese)
    out, _ = capsys.readouterr()
    assert out.strip() == """---CONST BarCodePosition
Exemplo n.º 4
0
def test_ls_barcode_position(capsys):
    from thermalprinter.constants import BarCodePosition
    from thermalprinter.tools import ls

    ls(BarCodePosition)
    out, _ = capsys.readouterr()
    assert out.strip() == """---CONST BarCodePosition
Exemplo n.º 5
0
def test_ls(capsys):
    from thermalprinter.tools import ls

    ls()
    out, _ = capsys.readouterr()
    assert out.strip() == """---CONST BarCode