mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
adapt behavior of cups printer to match other implementations
This commit is contained in:
@@ -170,7 +170,7 @@ def test_read_no_device(cupsprinter) -> None:
|
||||
"""
|
||||
GIVEN a cups printer object
|
||||
WHEN device is None
|
||||
THEN check the return value is b''
|
||||
THEN check the return value is b'8'
|
||||
"""
|
||||
cupsprinter.device = None
|
||||
assert cupsprinter._read() == b""
|
||||
assert cupsprinter._read() == b"8"
|
||||
|
Reference in New Issue
Block a user