From f1f0b7bb22deef742108fde5436fe7fc8d957532 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Wed, 12 Mar 2025 18:16:28 -0700 Subject: [PATCH] rename scoring --- tests/integration/scoring/test_scoring.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/scoring/test_scoring.py b/tests/integration/scoring/test_scoring.py index a2d8500d5..3f0f832c1 100644 --- a/tests/integration/scoring/test_scoring.py +++ b/tests/integration/scoring/test_scoring.py @@ -11,7 +11,7 @@ from ..datasetio.test_datasetio import register_dataset @pytest.fixture -def test_dataset_rag(llama_stack_client): +def rag_dataset_for_test(llama_stack_client): register_dataset(llama_stack_client, for_rag=True) yield # This is where the test function will run @@ -91,7 +91,7 @@ def test_scoring_functions_register( # TODO: add unregister api for scoring functions -def test_scoring_score(llama_stack_client, test_dataset_rag): +def test_scoring_score(llama_stack_client, rag_dataset_for_test): # scoring individual rows rows = llama_stack_client.datasetio.get_rows_paginated( dataset_id="test_dataset", @@ -126,7 +126,7 @@ def test_scoring_score(llama_stack_client, test_dataset_rag): def test_scoring_score_with_params_llm_as_judge( - llama_stack_client, sample_judge_prompt_template, judge_model_id, test_dataset_rag + llama_stack_client, sample_judge_prompt_template, judge_model_id, rag_dataset_for_test ): # scoring individual rows rows = llama_stack_client.datasetio.get_rows_paginated( @@ -177,7 +177,7 @@ def test_scoring_score_with_params_llm_as_judge( ], ) def test_scoring_score_with_aggregation_functions( - llama_stack_client, sample_judge_prompt_template, judge_model_id, provider_id, test_dataset_rag + llama_stack_client, sample_judge_prompt_template, judge_model_id, provider_id, rag_dataset_for_test ): rows = llama_stack_client.datasetio.get_rows_paginated( dataset_id="test_dataset",