From dba3388567818cb5c60be9d406d3e1cccc84b3ea Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 29 Apr 2026 14:22:03 +0200 Subject: 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 --- tests/cogs/test_ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/cogs/test_ai.py') diff --git a/tests/cogs/test_ai.py b/tests/cogs/test_ai.py index a1c3fd4..6d92f55 100644 --- a/tests/cogs/test_ai.py +++ b/tests/cogs/test_ai.py @@ -2,7 +2,7 @@ import pytest from unittest.mock import AsyncMock, patch, MagicMock import discord import httpx -from tests.conftest import MockApplicationContext +from conftest import MockApplicationContext @pytest.fixture -- cgit v1.2.3