diff --git a/src/promptflow-evals/tests/evals/unittests/test_save_eval.py b/src/promptflow-evals/tests/evals/unittests/test_save_eval.py index 0a1a3280e9b..1ab43dd1b17 100644 --- a/src/promptflow-evals/tests/evals/unittests/test_save_eval.py +++ b/src/promptflow-evals/tests/evals/unittests/test_save_eval.py @@ -13,7 +13,7 @@ class TestSaveEval: """Test saving evaluators.""" @staticmethod - def get_evaluators_from_module(namespace: Any, exceptions: Optional[List[str]] = None) -> List[Type]: + def _get_evaluators_from_module(namespace: Any, exceptions: Optional[List[str]] = None) -> List[Type]: evaluators = [] for name, obj in inspect.getmembers(namespace): if inspect.isclass(obj): @@ -22,8 +22,8 @@ def get_evaluators_from_module(namespace: Any, exceptions: Optional[List[str]] = evaluators.append(obj) return evaluators - EVALUATORS = get_evaluators_from_module(evaluators) - RAI_EVALUATORS = get_evaluators_from_module(content_safety) + EVALUATORS = _get_evaluators_from_module(evaluators) + RAI_EVALUATORS = _get_evaluators_from_module(content_safety) @pytest.mark.parametrize('evaluator', EVALUATORS) def test_save_evaluators(self, tmpdir, pf_client, evaluator) -> None: