mirror of
https://github.com/mruwnik/memory.git
synced 2026-01-02 17:22:58 +01:00
- 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>
23 lines
658 B
INI
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
|