Skip to content

Commit

Permalink
fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-hwoo committed Sep 6, 2024
1 parent ba9d5f1 commit e8bfc4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions genai-perf/tests/test_synthetic_data_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
import pytest
from genai_perf.inputs.input_constants import OutputFormat
from genai_perf.inputs.inputs_config import InputsConfig
from genai_perf.inputs.synthetic_retriever import SyntheticDataRetriever
from genai_perf.inputs.synthetic_data_retriever import SyntheticDataRetriever


class TestSyntheticDataRetriever:

@patch(
"genai_perf.inputs.synthetic_retriever.SyntheticPromptGenerator.create_synthetic_prompt",
"genai_perf.inputs.synthetic_data_retriever.SyntheticPromptGenerator.create_synthetic_prompt",
return_value="test prompt",
)
@pytest.mark.parametrize(
Expand Down Expand Up @@ -51,11 +51,11 @@ def test_synthetic_text(self, mock_prompt, output_format):
]

@patch(
"genai_perf.inputs.synthetic_retriever.SyntheticPromptGenerator.create_synthetic_prompt",
"genai_perf.inputs.synthetic_data_retriever.SyntheticPromptGenerator.create_synthetic_prompt",
return_value="test prompt",
)
@patch(
"genai_perf.inputs.synthetic_retriever.SyntheticImageGenerator.create_synthetic_image",
"genai_perf.inputs.synthetic_data_retriever.SyntheticImageGenerator.create_synthetic_image",
return_value="data:image/jpeg;base64,test_base64_encoding",
)
def test_synthetic_text_and_image(self, mock_prompt, mock_image):
Expand Down

0 comments on commit e8bfc4c

Please sign in to comment.