fix: resolve pytest conftest conflicts with package-specific configs

This commit is contained in:
Greyson Lalonde
2025-09-12 22:57:42 -04:00
parent 5ee1b35889
commit d610023527
5 changed files with 9 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ jobs:
# DURATIONS_ARG="--durations-path=${DURATION_FILE}"
# fi
uv run pytest \
uv run --package crewai-core pytest \
--block-network \
--timeout=30 \
-vv \

View File

@@ -39,4 +39,4 @@ jobs:
run: uv sync --dev --all-extras
- name: Run tests
run: uv run pytest packages/tools/tests -vv
run: uv run --package crewai-tools pytest -vv

View File

@@ -71,6 +71,12 @@ qdrant = [
[project.scripts]
crewai = "crewai.cli.cli:crewai"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"telemetry: mark test as a telemetry test (don't mock telemetry)",
]
[tool.hatch.version]
path = "src/crewai/__init__.py"

View File

@@ -136,6 +136,7 @@ contextual = [
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
[tool.hatch.version]

View File

@@ -86,14 +86,6 @@ ignore = ["E501"] # ignore line too long
[tool.mypy]
exclude = ["packages/crewai/src/crewai/cli/templates", "packages/*/tests"]
[tool.pytest.ini_options]
testpaths = [
"packages/crewai/tests",
"packages/tools/tests",
]
markers = [
"telemetry: mark test as a telemetry test (don't mock telemetry)",
]
# PyTorch index configuration, since torch 2.5.0 is not compatible with python 3.13
[[tool.uv.index]]