mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
chore: Enhance pytest configuration and add custom markers in pyproject.toml
This commit is contained in:
parent
d350f47ee7
commit
03d8788241
2 changed files with 9 additions and 1 deletions
|
|
@ -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 = ["."]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue