1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-16 07:10:09 -07:00

Bootstrap tests.

This commit is contained in:
aaron.godfrey 2019-06-28 11:31:10 -07:00
parent aa2a13bb6d
commit e85ba126c5
4 changed files with 31 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.coverage
.tox
dist/
wideq_state.json

View File

@ -12,3 +12,10 @@ requires = [
]
description-file = "README.md"
requires-python = ">=3.4"
[tool.flit.metadata.requires-extra]
test = [
"coverage",
"flake8",
"pytest"
]

2
tests/test_simple.py Normal file
View File

@ -0,0 +1,2 @@
def test_simple():
assert True

20
tox.ini Normal file
View File

@ -0,0 +1,20 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py34,py35,py36,37
skipsdist = True
[testenv]
setenv =
PYTHON_EGG_CACHE = {toxworkdir}/egg-cache
PYTHONHASHSEED = 0
deps =
flit
commands =
flit install
coverage run {envbindir}/pytest {posargs}
coverage report
py37: flake8