File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ansible_ai_connect/main/tests Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 26
26
from django .apps import apps
27
27
from django .test import override_settings
28
28
29
+ from ansible_ai_connect .ai .api .model_pipelines .factory import ModelPipelineFactory
29
30
from ansible_ai_connect .ai .api .model_pipelines .tests import mock_config
30
31
from ansible_ai_connect .main .utils import has_wca_providers
31
32
from ansible_ai_connect .test_utils import WisdomServiceLogAwareTestCase
35
36
class TestHasWCAProvidersWithWCAProvider (WisdomServiceLogAwareTestCase ):
36
37
def tearDown (self ):
37
38
"""Reset pipeline factory to avoid test interference."""
38
- apps .get_app_config ("ai" )._pipeline_factory = None
39
+ # Force recreation of the factory with current configuration
40
+ apps .get_app_config ("ai" )._pipeline_factory = ModelPipelineFactory ()
39
41
super ().tearDown ()
40
42
41
43
def test_returns_true_with_wca_provider (self ):
You can’t perform that action at this time.
0 commit comments