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:
Teemu R
2020-04-20 19:26:20 +02:00
committed by GitHub
parent 7f625cd1c2
commit 852ae494af
4 changed files with 129 additions and 9 deletions

View File

@@ -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]