Skip to content

Commit e0b3c50

Browse files
committed
ignore test data folder from tests
1 parent a20b182 commit e0b3c50

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.codegen.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"prepend_path": ".venv/bin",
99
"acceptance_path": "tests/",
1010
"test": [
11-
"pytest tests/ --ignore=test_data -n 10 --cov --cov-report=xml --timeout 480 --durations 20"
11+
"pytest tests/ -n 10 --cov --cov-report=xml --timeout 480 --durations 20"
1212
]
1313
}
1414
}

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ path = ".venv"
7979

8080
[tool.hatch.envs.default.scripts]
8181
test = "pytest tests/unit/ -n 10 --cov --cov-report=xml --timeout 30 --durations 20"
82-
coverage = "pytest tests/ --ignore=test_data -n 10 --cov --cov-report=html --timeout 480 --durations 20"
82+
coverage = "pytest tests/ -n 10 --cov --cov-report=html --timeout 480 --durations 20"
8383
integration = "pytest tests/integration/ -n 10 --cov --cov-report=xml --timeout 480 --durations 20"
8484
fmt = ["black . --extend-exclude 'demos/'",
8585
"ruff check . --fix",
@@ -97,7 +97,7 @@ profile = "black"
9797
exclude = ['venv', '.venv']
9898

9999
[tool.pytest.ini_options]
100-
addopts = "--no-header --ignore=test_data"
100+
addopts = "--no-header"
101101
cache_dir = ".venv/pytest-cache"
102102
filterwarnings = ["ignore::DeprecationWarning"]
103103

tests/__init__.py

Whitespace-only changes.

tests/conftest.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def pytest_ignore_collect(path, config):
2+
# Ignore test_data directory
3+
if "test_data" in str(path):
4+
return True

0 commit comments

Comments
 (0)