summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-07-31 00:32:41 -0400
committeranselor <anselor@gmail.com>2020-08-04 13:38:08 -0400
commit4afadcf64659906a24e521eccdba6d4b2ed70125 (patch)
treec8d7db414084c54ca4f569e90c7efd9fc176dca4
parentbda751a1364bb396c0c690a2e83d781cdfd880be (diff)
downloadcmd2-git-4afadcf64659906a24e521eccdba6d4b2ed70125.tar.gz
Fix it so py.test by itself doesn't crash
Change setup.cfg so that pytest only runs tests in the tests directory by default. Attempting to run tests in the isolated_tests directory was causing a crash
-rw-r--r--setup.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index c1de2b05..742709a6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,7 @@
+[tool:pytest]
+testpaths =
+ tests
+
[flake8]
exclude = .git,.idea,.pytest_cache,.tox,.nox,.venv,.vscode,build,cmd2.egg-info,dist,htmlcov,__pycache__,*.egg
max-line-length = 127