mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
Run integration tests with other provider, too
- Amend and add files to run integration tests against the provider that was not autodetected, too. - Add check to ensure that all integration tests run against both providers - Run black check for all python scripts
This commit is contained in:
parent
4b9c91763b
commit
c279f0afc5
9 changed files with 160 additions and 26 deletions
15
tox.ini
15
tox.ini
|
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = black, flake8, pylint, py{26,27,36,37}
|
||||
envlist = black, flake8, pylint, py{26,27,36,37}, ensure_non_running_provider
|
||||
skipsdist = true
|
||||
skip_missing_interpreters = True
|
||||
|
||||
|
|
@ -17,15 +17,13 @@ setenv =
|
|||
LC_ALL = C
|
||||
changedir = {toxinidir}/tests
|
||||
covtarget = network_connections
|
||||
scriptfiles = library/network_connections.py tests/test_network_connections.py
|
||||
pytesttarget = .
|
||||
|
||||
[testenv:black]
|
||||
basepython = python3.6
|
||||
deps = black
|
||||
|
||||
commands = black --check --diff \
|
||||
{[base]scriptfiles}
|
||||
commands = black --check --diff --include "^[^.].*\.py$" .
|
||||
|
||||
[testenv:py26]
|
||||
passenv = {[base]passenv}
|
||||
|
|
@ -113,6 +111,13 @@ changedir = {[base]changedir}
|
|||
commands =
|
||||
coveralls
|
||||
|
||||
[testenv:ensure_non_running_provider]
|
||||
basepython = python3.6
|
||||
deps =
|
||||
PyYAML
|
||||
changedir = {toxinidir}/tests
|
||||
commands = {toxinidir}/tests/ensure_non_running_provider.py
|
||||
|
||||
[pytest]
|
||||
addopts = -rxs
|
||||
|
||||
|
|
@ -132,5 +137,5 @@ max-line-length = 88
|
|||
python =
|
||||
2.6: py26
|
||||
2.7: py27,coveralls,flake8,pylint
|
||||
3.6: py36,black
|
||||
3.6: py36,black,ensure_non_running_provider
|
||||
3.7: py37
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue