Skip to content

Commit 07626b6

Browse files
committed
Re-enable one test
1 parent 3878787 commit 07626b6

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

ansible_ai_connect/main/tests/test_utils.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,18 @@
2323
# )
2424
# from ansible_ai_connect.test_utils import WisdomServiceLogAwareTestCase
2525

26+
from django.test import override_settings
2627

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())
3238

3339

3440
# @override_settings(ANSIBLE_AI_MODEL_MESH_CONFIG=mock_config("wca-onprem"))

0 commit comments

Comments
 (0)