Move interop tests out of tests

It is moved to the top level package `tests_interop`, to avoid circular
dependency, with the dependency moved to `tox`.
This commit is contained in:
mhchia
2019-09-23 22:00:40 +08:00
parent 4a838033ff
commit 006002f687
20 changed files with 50 additions and 11 deletions

20
tox.ini
View File

@ -27,11 +27,10 @@ skip_glob=
[testenv]
deps =
passenv = CI TRAVIS TRAVIS_* GOPATH
passenv = CI TRAVIS TRAVIS_*
extras = test
commands =
test: py.test --ignore=tests/interop
interop: py.test tests/interop
test: py.test tests/ -v
basepython =
py37: python3.7
@ -40,6 +39,15 @@ basepython = python3
extras = dev
commands =
mypy -p libp2p -p examples --config-file {toxinidir}/mypy.ini
black --check libp2p tests examples setup.py
isort --recursive --check-only libp2p tests examples setup.py
flake8 libp2p tests examples setup.py
black --check libp2p tests tests_interop examples setup.py
isort --recursive --check-only libp2p tests tests_interop examples setup.py
flake8 libp2p tests tests_interop examples setup.py
[testenv:py37-interop]
deps = p2pclient
passenv = CI TRAVIS TRAVIS_* GOPATH
extras = test
commands =
test: py.test tests_interop/ -v
basepython =
py37: python3.7