chore: Enhance pytest configuration and add custom markers in pyproject.toml

This commit is contained in:
Anish Sarkar 2026-02-25 17:51:33 +05:30
parent d350f47ee7
commit 03d8788241
2 changed files with 9 additions and 1 deletions

View file

@ -171,7 +171,12 @@ testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short -x --durations=10"
addopts = "-v --tb=short -x --strict-markers -ra --durations=10"
markers = [
"document: document upload and processing tests",
"connector: connector indexing tests",
"chat: chat and agent tests",
]
[tool.setuptools.packages.find]
where = ["."]

View file

@ -17,6 +17,7 @@ import shutil
from pathlib import Path
import httpx
import pytest
from tests.utils.helpers import (
FIXTURES_DIR,
@ -27,6 +28,8 @@ from tests.utils.helpers import (
upload_multiple_files,
)
pytestmark = pytest.mark.document
# ---------------------------------------------------------------------------
# Helpers local to this module
# ---------------------------------------------------------------------------