Skip to content

Commit

Permalink
Make staticmethod private
Browse files Browse the repository at this point in the history
  • Loading branch information
nick863 committed Apr 17, 2024
1 parent 5c71695 commit 4af8c57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/promptflow-evals/tests/evals/unittests/test_save_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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:
Expand Down

0 comments on commit 4af8c57

Please sign in to comment.