Skip to content

Commit 6c1e476

Browse files
author
Jean-Baptiste Oger
committed
test: fix test_save_as_pt_model_with_different_id
Signed-off-by: Jean-Baptiste Oger <[email protected]>
1 parent b2bc31e commit 6c1e476

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ml_models/test_sentencetransformermodel_pytest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,13 +726,13 @@ def test_save_as_pt_model_with_different_id():
726726
model_id2 = "sentence-transformers/all-MiniLM-L6-v2"
727727
model_format = "TORCH_SCRIPT"
728728
zip_file_path = os.path.join(TEST_FOLDER, "msmarco-distilbert-base-tas-b.zip")
729-
zip_file_path2 = os.path.join(TEST_FOLDER, "all-MiniLM-L6-v2")
729+
zip_file_path2 = os.path.join(TEST_FOLDER, "all-MiniLM-L6-v2.zip")
730730
expected_filenames_wo_model_id = {
731731
"msmarco-distilbert-base-tas-b.pt",
732732
"tokenizer.json",
733733
}
734734
expected_filenames_with_model_id = {
735-
"msmarco-distilbert-base-tas-b.pt",
735+
"all-MiniLM-L6-v2.pt",
736736
"tokenizer.json",
737737
}
738738

0 commit comments

Comments
 (0)