Skip to content

Commit 308d474

Browse files
committed
Add some pytest config
1 parent 75712ac commit 308d474

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

alldata/bblab_site/pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,28 @@ include = [
9393

9494
[tool.hatch.metadata]
9595
allow-direct-references = true
96+
97+
[tool.pytest.ini_options]
98+
testpaths = [
99+
"tools",
100+
]
101+
# Exclude vendor/dependency directories and submodule repos that have their own test suites
102+
norecursedirs = [
103+
"depend",
104+
".venv",
105+
"build",
106+
"dist",
107+
"*.egg",
108+
".git",
109+
"git",
110+
".tox",
111+
"repo", # Excludes submodule repos like tools/phage_i_expanded/repo/
112+
"blind_dating",
113+
"phylodating",
114+
"translate_DNA",
115+
"tests/phylodating", # Exclude the test submodule copy
116+
]
117+
# Only collect test files from our actual project, not vendored dependencies
118+
python_files = ["tests.py"] # Only collect Django test files
119+
python_classes = ["Test*"]
120+
python_functions = ["test_*"]

0 commit comments

Comments
 (0)