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

@@ -13,7 +13,7 @@ import tempfile
import pytest
def test_instantiation():
def test_instantiation() -> None:
"""test the instantiation of a escpos-printer class"""
# inject an environment variable that points to an empty capabilities file
os.environ["ESCPOS_CAPABILITIES_FILE"] = tempfile.NamedTemporaryFile().name