Skip to content

Commit 5d36848

Browse files
committed
Speed up py.test by only looking for tests in tests/
1 parent f8defdd commit 5d36848

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ default_section = THIRDPARTY
2727
known_first_party = zigpy_znp,tests
2828
forced_separate = tests
2929
combine_as_imports = true
30+
31+
[tool:pytest]
32+
addopts = --showlocals --verbose
33+
testpaths = tests

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ skip_missing_interpreters = True
1010
[testenv]
1111
setenv = PYTHONPATH = {toxinidir}
1212
install_command = pip install {opts} {packages}
13-
commands = py.test --cov --cov-report=html --showlocals --verbose
13+
commands = py.test --cov --cov-report=html
1414
deps =
1515
coveralls
1616
pytest==5.3.5

0 commit comments

Comments
 (0)