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

Clean up tests and migrate (#540)

* migrate
  * abstract base class test
  * remove assert_equal in test_cli
  * remove nose from test_cli
  * remove nose dependencies
  * use tempfile
* configure coverage
  * flag python version in name
  * enable comment
* drop EOL py37
This commit is contained in:
Patrick Kanzler
2023-08-10 00:18:02 +02:00
committed by GitHub
parent 31daabcbea
commit 4c2dcdfac6
12 changed files with 61 additions and 53 deletions

View File

@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39, py310, py311, docs, flake8
envlist = py38, py39, py310, py311, docs, flake8
[gh-actions]
python =
@@ -10,10 +10,10 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps = nose
jaconv
deps = jaconv
coverage
scripttest
mock
@@ -22,7 +22,7 @@ deps = nose
pytest-mock
hypothesis>4
python-barcode
commands = pytest --cov escpos
commands = pytest --cov escpos --cov-report=xml
passenv = ESCPOS_CAPABILITIES_PICKLE_DIR, ESCPOS_CAPABILITIES_FILE, CI, TRAVIS, TRAVIS_*, APPVEYOR, APPVEYOR_*, CODECOV_*
[testenv:docs]