mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add (some) tests to the cli tool (#22)
* Add tests to the cli tool * add pytest-mock * do not ignore cli.py for coverage * read requirements_test.txt instead of redefining reqs in tox.ini * Add upload to codecov, first try! * fix name of the result file * no need to manually publish to azure devops..
This commit is contained in:
9
tox.ini
9
tox.ini
@@ -8,13 +8,7 @@ skip_missing_interpreters = True
|
||||
|
||||
[testenv]
|
||||
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
||||
deps=
|
||||
pytest
|
||||
pytest-cov
|
||||
voluptuous
|
||||
typing
|
||||
flake8
|
||||
pytest-asyncio
|
||||
deps = -r{toxinidir}/requirements_test.txt
|
||||
commands=
|
||||
py.test --cov --cov-config=tox.ini kasa
|
||||
|
||||
@@ -49,7 +43,6 @@ commands = pre-commit run --all-files
|
||||
source = kasa
|
||||
branch = True
|
||||
omit =
|
||||
kasa/cli.py
|
||||
kasa/tests/*
|
||||
|
||||
[coverage:report]
|
||||
|
Reference in New Issue
Block a user