From 1a8bf47d20bc1f6e8d021d509ffa1c6a3e49c273 Mon Sep 17 00:00:00 2001 From: Greyson Lalonde Date: Fri, 12 Sep 2025 23:03:58 -0400 Subject: [PATCH] fix: add root pytest config --- packages/tools/pyproject.toml | 1 - pyproject.toml | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/tools/pyproject.toml b/packages/tools/pyproject.toml index b80d6e4a7..039089d7d 100644 --- a/packages/tools/pyproject.toml +++ b/packages/tools/pyproject.toml @@ -137,7 +137,6 @@ contextual = [ [tool.pytest.ini_options] testpaths = ["tests"] -pythonpath = ["."] [tool.hatch.version] path = "src/crewai_tools/__init__.py" diff --git a/pyproject.toml b/pyproject.toml index f266feeda..d897c516d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,6 +83,15 @@ ignore = ["E501"] # ignore line too long [tool.ruff.lint.per-file-ignores] "tests/**/*.py" = ["S101"] # Allow assert statements in tests +[tool.pytest.ini_options] +testpaths = [ + "packages/crewai/tests", + "packages/tools/tests", +] +markers = [ + "telemetry: mark test as a telemetry test (don't mock telemetry)", +] + [tool.mypy] exclude = ["packages/crewai/src/crewai/cli/templates", "packages/*/tests"]