Skip to content

Commit

Permalink
fixing tests path
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista committed Dec 19, 2024
1 parent 19f1011 commit 8c2ddab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/components/preprocessors/test_sentence_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_read_abbreviations_existing_file(tmp_path, mock_file_content):
abbrev_file.write_text(mock_file_content)

with patch("haystack.components.preprocessors.sentence_tokenizer.Path") as mock_path:
mock_path.return_value.parent.parent = tmp_path
mock_path.return_value.parent.parent.parent = tmp_path
result = SentenceSplitter._read_abbreviations("en")
assert result == ["Mr.", "Dr.", "Prof."]

Expand Down

0 comments on commit 8c2ddab

Please sign in to comment.