Skip to content

Commit

Permalink
fixing results in tests for patching
Browse files Browse the repository at this point in the history
  • Loading branch information
ischender committed Jan 27, 2024
1 parent 77fc4ce commit 788c184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/metrics/de/test_reference_free_text_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_sentiment_openai(generated_outputs):
mock_chat_completion = Mock(spec=ChatCompletion)
mock_chat_completion.choices = [
Mock(message=Mock(function_call=Mock(
arguments="{\n \"sentiment\": \"Positive\"\n}")))
arguments="{\n \"sentiment\": \"Positiv\"\n}")))
]

# Calling the openai.resources.chat.Completions.create method requires an
Expand Down
2 changes: 1 addition & 1 deletion tests/metrics/de/test_source_based_text_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_factual_consistency_openai(generated_outputs, sources):
mock_chat_completion = Mock(spec=ChatCompletion)
mock_chat_completion.choices = [
Mock(message=Mock(function_call=Mock(
arguments="{\n \"factuality\": \"Fully Consistent\"\n}")))
arguments="{\n \"factuality\": \"Vollständig Konsistent\"\n}")))
]

# Calling the openai.resources.chat.Completions.create method requires an
Expand Down

0 comments on commit 788c184

Please sign in to comment.