Skip to content

Commit 7605614

Browse files
committed
fix: simplify pytest configuration to resolve CI issues
- Created pytest.ini with minimal configuration - Removed pytest config from pyproject.toml to avoid conflicts - Set asyncio_mode=auto to prevent strict mode issues - Removed unnecessary integration conftest.py - Markers are already defined and tests are properly marked
1 parent fa76a5c commit 7605614

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

pyproject.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,7 @@ disallow_any_unimported = true
106106
module = "tests.*"
107107
disallow_untyped_defs = false
108108

109-
[tool.pytest.ini_options]
110-
minversion = "7.0"
111-
testpaths = ["tests"]
112-
addopts = [
113-
"-ra",
114-
"--strict-markers",
115-
]
116-
markers = [
117-
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
118-
]
109+
# Pytest configuration moved to pytest.ini
119110

120111
[tool.coverage.run]
121112
source = ["src/nutrient_dws"]

pytest.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[pytest]
2+
minversion = 7.0
3+
testpaths = tests
4+
addopts = -ra --strict-markers
5+
asyncio_mode = auto
6+
markers =
7+
integration: marks tests as integration tests (deselect with '-m "not integration"')

tests/integration/conftest.py

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

0 commit comments

Comments
 (0)