aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2026-04-29 14:22:03 +0200
committersalmonik <raisersoft@proton.me>2026-04-29 14:22:03 +0200
commitdba3388567818cb5c60be9d406d3e1cccc84b3ea (patch)
tree53a0903f7a4c381c7ad12e3e632ef8dd8ebba39f /AGENTS.md
parentmultitude of changes. (diff)
downloadsenator-sperma-dba3388567818cb5c60be9d406d3e1cccc84b3ea.tar.gz
senator-sperma-dba3388567818cb5c60be9d406d3e1cccc84b3ea.zip
Refactor database connections and add integration tests
- Use context managers for sqlite3 connections in cron, vclogs, and database utils - Add URL helper utility for yt-dlp with clean_url_for_ytdlp function - Add slow integration test markers and new integration test files - Fix test imports to use conftest directly instead of tests.conftest - Improve downloader error handling and use COPYPARTY_URL_UPLOAD env var - Update pytest.ini with slow test markers and warning filters - Document slow test usage in AGENTS.md
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 44be9d5..8d0b743 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -26,3 +26,8 @@
26- Tests in `tests/cogs/test_*.py` 26- Tests in `tests/cogs/test_*.py`
27- Uses pytest-asyncio with `asyncio_default_fixture_loop_scope = function` 27- Uses pytest-asyncio with `asyncio_default_fixture_loop_scope = function`
28- `conftest.py` provides fixtures for mocking Discord objects 28- `conftest.py` provides fixtures for mocking Discord objects
29- **Slow integration tests** marked with `@pytest.mark.slow`
30 - Test real-world feature usage with longer execution times
31 - Includes: voice session tracking, cron job execution, music playback lifecycle, downloader flow, trigger responses
32 - Run only fast tests: `.venv/bin/pytest -m "not slow"`
33 - Run only slow tests: `.venv/bin/pytest -m slow`