aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request 'feat: add local API support for OpenAI compatible APIs' ↵salmonik2026-06-031-50/+10
|\ | | | | | | | | | | (#6) from dev into main Reviewed-on: https://codeberg.org/salmonik/senator-sperma/pulls/6
| * feat: add local API support for OpenAI compatible APIssalmonik2026-06-031-50/+10
| | | | | | | | Signed-off-by: salmonik <raisersoft@proton.me>
* | Merge pull request 'Voice related fixes, alongside simplifying assistant' ↵salmonik2026-05-214-35/+40
|\| | | | | | | | | | | (#5) from dev into main Reviewed-on: https://codeberg.org/salmonik/senator-sperma/pulls/5
| * reqs and test fixsalmonik2026-05-211-12/+14
| | | | | | | | Signed-off-by: salmonik <raisersoft@proton.me>
| * Redirect play_commands imports to cogs.voice, remove audio_playback shimsalmonik2026-05-201-8/+8
| | | | | | | | | | | | | | | | - Update play_commands.py to import get_voice_manager from cogs.voice instead of going through the audio_playback.py re-export shim - Delete the audio_playback.py shim file entirely - Update test_music_audio.py imports to use cogs.voice.VoiceManager - Delete PLAN_VOICE_REFACTOR.md (plan is complete)
| * Clean up consumers: replace polling with VoiceManager.play_source()salmonik2026-05-203-15/+18
| | | | | | | | | | | | | | | | | | - cron.py: replace while-is_playing polling with VoiceManager.play_source() - vclogs.py: replace while-is_playing polling with VoiceManager.play_source() - stop.py: use VoiceManager.disconnect() instead of raw voice_client - join.py: use VoiceManager.connect() instead of raw channel.connect() - voice.py: add back join_by_channel_id() convenience method - Tests: update for new VoiceManager method names and signatures
* | fix naming not resolving things like %20salmonik2026-05-161-14/+7
|/ | | | Signed-off-by: salmonik <raisersoft@proton.me>
* Refactor database connections and add integration testssalmonik2026-04-2925-59/+325
| | | | | | | | | | - 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
* multitude of changes.salmonik2026-04-284-68/+296
| | | | | | but primarly, use db for all data. Signed-off-by: salmonik <raisersoft@proton.me>
* fix: proper aiohttp async context manager mocking in testsalmonik2026-04-191-5/+10
|
* fix: mock aiohttp instead of requests in external play testsalmonik2026-04-191-5/+8
|
* feat: add external URL playback support, fix vclogs audio handlingsalmonik2026-04-191-0/+108
|
* test: improve test assertions and edge casessalmonik2026-04-1917-243/+172
|
* test: add cron tests + improve existing testssalmonik2026-04-193-90/+180
| | | | | | | - Add 15 tests for cron.py covering load/save, task management - Improve existing test assertions and coverage - Remove flaky plot tests - 93 tests now pass (up from 78)
* add a test suitesalmonik2026-04-1819-0/+1618
Signed-off-by: salmonik <raisersoft@proton.me>