Skip to content

Commit

Permalink
Fix benchmark for QuestionValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Feb 4, 2025
1 parent 7edfdf3 commit ef89ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/benchmarks/test_question_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def perform_question_validation_benchmark(benchmark, question):
# be performed
llm_loader = mock_llm_loader(
None,
expected_params=("p1", "m1", {GenericLLMParameters.MAX_TOKENS_FOR_RESPONSE: 4}),
expected_params=("p1", "m1", {GenericLLMParameters.MAX_TOKENS_FOR_RESPONSE: 4}, False),
)

# check that LLM loader was called with expected parameters
Expand Down
2 changes: 1 addition & 1 deletion tests/mock_classes/mock_llm_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def loader(*args, **kwargs):
# if expected params are provided, check if (mocked) LLM loader
# was called with expected parameters
if expected_params is not None:
assert expected_params == args, expected_params
assert expected_params == args, (expected_params, args)
return MockLLMLoader(llm)

return loader

0 comments on commit ef89ec1

Please sign in to comment.