Commit 81cdafb1 authored by Tanner Prestegard's avatar Tanner Prestegard

Update pytest and tox configuration

parent a5d74e4c
......@@ -2,7 +2,10 @@
test = pytest
[tool:pytest]
addopts = --ignore=ligo/gracedb/test/integration -v
addopts = -m "not integration" --strict-markers -v
markers =
cli: tests related to the command-line interface
integration: integration tests, connection to a GraceDB server required
[flake8]
ignore = E129, W503
......
[tox]
envlist = {py27,py34,py35,py36,py37}-{unit_test,integration_test,integration_cli_test}
envlist = {py27,py34,py35,py36,py37}-{unit_test,integration_test}
skip_missing_interpreters = True
[testenv]
passenv =
integration_test: TEST_SERVICE
integration_cli_test: TEST_SERVICE
commands =
unit_test: python setup.py test
integration_test: python setup.py integration_test
integration_cli_test: python setup.py test --addopts "ligo/gracedb/test/integration/test_cli.py"
integration_test: python setup.py test --addopts "-m integration"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment