mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-16 15:20:09 -07:00
Bootstrap tests.
This commit is contained in:
parent
aa2a13bb6d
commit
e85ba126c5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
|
.coverage
|
||||||
|
.tox
|
||||||
dist/
|
dist/
|
||||||
wideq_state.json
|
wideq_state.json
|
||||||
|
@ -12,3 +12,10 @@ requires = [
|
|||||||
]
|
]
|
||||||
description-file = "README.md"
|
description-file = "README.md"
|
||||||
requires-python = ">=3.4"
|
requires-python = ">=3.4"
|
||||||
|
|
||||||
|
[tool.flit.metadata.requires-extra]
|
||||||
|
test = [
|
||||||
|
"coverage",
|
||||||
|
"flake8",
|
||||||
|
"pytest"
|
||||||
|
]
|
||||||
|
2
tests/test_simple.py
Normal file
2
tests/test_simple.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
def test_simple():
|
||||||
|
assert True
|
20
tox.ini
Normal file
20
tox.ini
Normal 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
|
Loading…
x
Reference in New Issue
Block a user