Skip to content

Commit 5326211

Browse files
prandlawil93
authored andcommitted
Update pytest config
* Move settings into pyproject.toml * Set testpaths to avoid the "please monkey-patch earlier" warning from gevent (caused by pytest importing unnecessary files, including one that imported requests somewhere)
1 parent 6dcd821 commit 5326211

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,7 @@ devel = [
7474
[build-system]
7575
requires = ["setuptools>=80,<81", "babel==2.12.1"]
7676
build-backend = "setuptools.build_meta"
77+
78+
[tool.pytest.ini_options]
79+
python_files = ["test_*.py", "*_test.py", "*Test.py"]
80+
testpaths = ["cmstestsuite/unit_tests"]

pytest.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)