Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
smellycloud committed Dec 3, 2024
1 parent 1a04fe1 commit 002f5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def test_save_model_outputs(mock_model_path):
df_output = pd.DataFrame({"col1": [5, 6], "col2": [7, 8]})
path_generated = Path("/path/to/generated")
with patch("builtins.open", new_callable=mock_open), patch("pathlib.Path.mkdir"):
manager._save_model_outputs(df_evaluation, df_output, path_generated)
manager._save_model_outputs(df_evaluation, df_output, path_generated, sequence_number=1)
with patch("pathlib.Path.exists", return_value=True):
assert Path(f"{path_generated}/output_1_test_run_20220101.pkl").exists()
assert Path(f"{path_generated}/evaluation_1_test_run_20220101.pkl").exists()
Expand Down

0 comments on commit 002f5b7

Please sign in to comment.