Use SQLite when testing

This commit is contained in:
Joakim Hellsén 2026-02-15 19:59:52 +01:00
commit ea4cd498d0
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
4 changed files with 48 additions and 41 deletions

View file

@ -2,7 +2,9 @@ from __future__ import annotations
import json
from pathlib import Path
from unittest import skipIf
from django.db import connection
from django.test import TestCase
from twitch.management.commands.better_import_drops import Command
@ -369,6 +371,7 @@ class CampaignStructureDetectionTests(TestCase):
class OperationNameFilteringTests(TestCase):
"""Tests for filtering campaigns by operation_name field."""
@skipIf(connection.vendor == "sqlite", reason="SQLite doesn't support JSON contains lookup")
def test_can_filter_campaigns_by_operation_name(self) -> None:
"""Ensure campaigns can be filtered by operation_name to separate data sources."""
command = Command()