diff options
| author | salmonik <raisersoft@proton.me> | 2026-04-29 14:22:03 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-04-29 14:22:03 +0200 |
| commit | dba3388567818cb5c60be9d406d3e1cccc84b3ea (patch) | |
| tree | 53a0903f7a4c381c7ad12e3e632ef8dd8ebba39f /pytest.ini | |
| parent | multitude of changes. (diff) | |
| download | senator-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 '')
| -rw-r--r-- | pytest.ini | 12 |
1 files changed, 7 insertions, 5 deletions
| @@ -1,7 +1,9 @@ | |||
| 1 | [pytest] | 1 | [pytest] |
| 2 | markers = | ||
| 3 | slow: marks tests as slow (deselect with '-m "not slow"') | ||
| 4 | asyncio_mode = strict | ||
| 2 | asyncio_default_fixture_loop_scope = function | 5 | asyncio_default_fixture_loop_scope = function |
| 3 | python_files = test_*.py | 6 | filterwarnings = |
| 4 | python_classes = Test* | 7 | ignore::RuntimeWarning |
| 5 | python_functions = test_* | 8 | ignore::pytest.PytestUnraisableExceptionWarning |
| 6 | testpaths = tests | 9 | ignore::DeprecationWarning:discord.client \ No newline at end of file |
| 7 | pythonpath = . \ No newline at end of file | ||
