1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-12-02 09:43:30 +00:00

remove nose dependencies

This commit is contained in:
Patrick Kanzler
2023-08-09 23:24:31 +02:00
parent 841b7a0674
commit 1ce5b1f87a
7 changed files with 16 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
from nose.tools import assert_raises
import pytest
from escpos.printer import Dummy
@@ -16,11 +16,11 @@ def test_line_spacing_rest():
def test_line_spacing_error_handling():
printer = Dummy()
with assert_raises(ValueError):
with pytest.raises(ValueError):
printer.line_spacing(99, divisor=44)
with assert_raises(ValueError):
with pytest.raises(ValueError):
printer.line_spacing(divisor=80, spacing=86)
with assert_raises(ValueError):
with pytest.raises(ValueError):
printer.line_spacing(divisor=360, spacing=256)
with assert_raises(ValueError):
with pytest.raises(ValueError):
printer.line_spacing(divisor=180, spacing=256)