File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
ansible_ai_connect/main/tests Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 23
23
# )
24
24
# from ansible_ai_connect.test_utils import WisdomServiceLogAwareTestCase
25
25
26
+ from django .test import override_settings
26
27
27
- # @override_settings(ANSIBLE_AI_MODEL_MESH_CONFIG=mock_config("wca"))
28
- # class TestHasWCAProvidersWithWCAProvider(WisdomServiceLogAwareTestCase):
29
- # def test_returns_true_with_wca_provider(self):
30
- # """Test that has_wca_providers returns True when WCA provider is configured."""
31
- # self.assertTrue(has_wca_providers())
28
+ from ansible_ai_connect .ai .api .model_pipelines .tests import mock_config
29
+ from ansible_ai_connect .main .utils import has_wca_providers
30
+ from ansible_ai_connect .test_utils import WisdomServiceLogAwareTestCase
31
+
32
+
33
+ @override_settings (ANSIBLE_AI_MODEL_MESH_CONFIG = mock_config ("wca" ))
34
+ class TestHasWCAProvidersWithWCAProvider (WisdomServiceLogAwareTestCase ):
35
+ def test_returns_true_with_wca_provider (self ):
36
+ """Test that has_wca_providers returns True when WCA provider is configured."""
37
+ self .assertTrue (has_wca_providers ())
32
38
33
39
34
40
# @override_settings(ANSIBLE_AI_MODEL_MESH_CONFIG=mock_config("wca-onprem"))
You can’t perform that action at this time.
0 commit comments