
Drops Py3.7, improves typing and adds a mypy config, improves the docstrings and isorts the imports. * configure isort * sort with isort * add github action * enable flake8-docstrings * fix docstrings * add mypy env * no implicit optional * add type for raw * add some type hints
18 lines
490 B
Python
18 lines
490 B
Python
#!/usr/bin/python
|
|
"""very basic test cases that load the classes
|
|
|
|
:author: `Patrick Kanzler <dev@pkanzler.de>`_
|
|
:organization: `python-escpos <https://github.com/python-escpos>`_
|
|
:copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_
|
|
:license: MIT
|
|
"""
|
|
|
|
|
|
import escpos.printer as printer
|
|
|
|
|
|
def test_instantiation():
|
|
"""test the instantiation of a escpos-printer class and basic printing"""
|
|
instance = printer.Dummy()
|
|
instance.text("This is a test\n")
|