From c0995c90e1b9e6ebd0992b76d544adfe1715f95a Mon Sep 17 00:00:00 2001 From: Andrew Luchuk Date: Thu, 2 Oct 2025 20:02:23 -0400 Subject: [PATCH] Add initial test case for loading backers --- ai_blocker/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ai_blocker/tests.py b/ai_blocker/tests.py index 7ce503c..60b8922 100644 --- a/ai_blocker/tests.py +++ b/ai_blocker/tests.py @@ -1,3 +1,10 @@ from django.test import TestCase +from ai_blocker.ualist_backers import ConfigBackedUAList +from middleware import load_backing_class + # Create your tests here. +class BackerConfigTestCase(TestCase): + def test_config_produces_object(self): + obj = load_backing_class("ai_blocker.ualist_backers.ConfigBackedUAList") + self.assertIs(obj, ConfigBackedUAList) \ No newline at end of file