Skip to content

Commit 481f7df

Browse files
committedMar 8, 2025
Add pytest configuration
1 parent 7ef49f8 commit 481f7df

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,10 @@ Documentation = "https://scripttest.readthedocs.io/en/stable/"
3939
[build-system]
4040
requires = ["setuptools >= 64.0"]
4141
build-backend = "setuptools.build_meta"
42+
43+
[tool.pytest.ini_options]
44+
addopts = "--ignore scripttest -r aR --color=yes"
45+
xfail_strict = true
46+
filterwarnings = [
47+
"ignore:cannot collect test class 'TestFileEnvironment'"
48+
]

‎tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist = py{38,39,310,311,312,313},pypy3,docs
44

55
[testenv]
66
deps = pytest
7-
commands = py.test
7+
commands = pytest tests
88

99
[testenv:docs]
1010
deps =

0 commit comments

Comments
 (0)