1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

improve type annotations in tests (#613)

This commit is contained in:
Patrick Kanzler
2023-12-17 01:15:59 +01:00
committed by GitHub
parent 0c824cf295
commit b66dafc90e
6 changed files with 17 additions and 16 deletions

View File

@@ -14,13 +14,13 @@ import escpos
import escpos.exceptions
def test_raise_error_wrongly():
def test_raise_error_wrongly() -> None:
"""raise error the wrong way
should reproduce https://github.com/python-escpos/python-escpos/issues/257
"""
with pytest.raises(AttributeError):
raise escpos.Error("This should raise an AttributeError.")
raise escpos.Error("This should raise an AttributeError.") # type: ignore [attr-defined]
def tests_raise_error() -> None: