mirror of
https://github.com/python-escpos/python-escpos
synced 2025-08-24 09:03:34 +00:00
reformat PEP8 and similar issues
This commit is contained in:
@@ -30,7 +30,7 @@ printer:
|
||||
)
|
||||
|
||||
|
||||
class TestCLI():
|
||||
class TestCLI:
|
||||
""" Contains setups, teardowns, and tests for CLI
|
||||
"""
|
||||
|
||||
|
@@ -35,4 +35,4 @@ def test_lacks_support(bctype, supports_b):
|
||||
with pytest.raises(BarcodeTypeError):
|
||||
instance.barcode('test', bctype)
|
||||
|
||||
assert instance.output == b''
|
||||
assert instance.output == b''
|
||||
|
@@ -17,10 +17,10 @@ def test_line_spacing_rest():
|
||||
def test_line_spacing_error_handling():
|
||||
printer = Dummy()
|
||||
with assert_raises(ValueError):
|
||||
printer.line_spacing(99, divisor=44)
|
||||
printer.line_spacing(99, divisor=44)
|
||||
with assert_raises(ValueError):
|
||||
printer.line_spacing(divisor=80, spacing=86)
|
||||
printer.line_spacing(divisor=80, spacing=86)
|
||||
with assert_raises(ValueError):
|
||||
printer.line_spacing(divisor=360, spacing=256)
|
||||
printer.line_spacing(divisor=360, spacing=256)
|
||||
with assert_raises(ValueError):
|
||||
printer.line_spacing(divisor=180, spacing=256)
|
||||
printer.line_spacing(divisor=180, spacing=256)
|
||||
|
@@ -22,7 +22,6 @@ from escpos.katakana import encode_katakana
|
||||
from escpos.exceptions import CharCodeError, Error
|
||||
|
||||
|
||||
|
||||
class TestEncoder:
|
||||
"""
|
||||
Tests the single encoders.
|
||||
|
@@ -26,6 +26,7 @@ if six.PY3:
|
||||
else:
|
||||
mock_open_call = '__builtin__.open'
|
||||
|
||||
|
||||
@given(path=text())
|
||||
def test_load_file_printer(mocker, path):
|
||||
"""test the loading of the file-printer"""
|
||||
|
@@ -35,4 +35,4 @@ class TestCustomProfile:
|
||||
assert Profile(columns=10).get_columns('sdfasdf') == 10
|
||||
|
||||
def test_features(self):
|
||||
assert Profile(features={'foo': True}).supports('foo')
|
||||
assert Profile(features={'foo': True}).supports('foo')
|
||||
|
Reference in New Issue
Block a user