memory/pytest.ini
Daniel O'Connell 93b77a16d6 Add pytest markers for fast/slow test separation
- Add --run-slow flag to optionally include slow tests
- Auto-detect tests that use db_session, test_db, db_engine, or qdrant fixtures
- Skip slow tests by default for faster development iteration
- Usage: pytest (fast only) or pytest --run-slow (all tests)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 18:21:41 +01:00

23 lines
658 B
INI

[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Custom markers
markers =
slow: marks tests as slow (creates database, uses containers, etc.)
integration: marks tests that require external services
db: marks tests that require database access
# Usage:
# pytest - Run fast tests only (default)
# pytest --run-slow - Run all tests including slow ones
# pytest -m slow --run-slow - Run only slow tests
# Suppress common warnings
filterwarnings =
ignore::DeprecationWarning:feedparser.*
ignore::DeprecationWarning:discord.*
ignore::sqlalchemy.exc.MovedIn20Warning