diff --git a/.gitignore b/.gitignore index 256b7e1..ca4300b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ +.coverage +.tox dist/ wideq_state.json diff --git a/tests/test_simple.py b/tests/test_simple.py new file mode 100644 index 0000000..9d45f4f --- /dev/null +++ b/tests/test_simple.py @@ -0,0 +1,2 @@ +def test_simple(): + assert True diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..405ccff --- /dev/null +++ b/tox.ini @@ -0,0 +1,22 @@ +[tox] +envlist = py34,py35,py36,py37,flake8,coverage +isolated_build = True + +[testenv] +commands = + python -m unittest {posargs} discover -s tests + +[testenv:flake8] +basepython = python3.7 +deps = + flake8 +commands = + flake8 {posargs} wideq/ tests/ + +[testenv:coverage] +basepytthon = python3.7 +deps = + coverage +commands = + coverage run --source=wideq -m unittest {posargs} discover -s tests + coverage report