From 750f31ab3ef1a3f27006371263f57388c3e791fe Mon Sep 17 00:00:00 2001 From: Merel Theisen Date: Thu, 30 Nov 2023 16:00:32 +0000 Subject: [PATCH] Try tmp path for bucket Signed-off-by: Merel Theisen --- kedro-datasets/tests/matplotlib/test_matplotlib_writer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kedro-datasets/tests/matplotlib/test_matplotlib_writer.py b/kedro-datasets/tests/matplotlib/test_matplotlib_writer.py index 20427f8ab..03ad082a5 100644 --- a/kedro-datasets/tests/matplotlib/test_matplotlib_writer.py +++ b/kedro-datasets/tests/matplotlib/test_matplotlib_writer.py @@ -9,10 +9,9 @@ from kedro_datasets.matplotlib import MatplotlibWriter BUCKET_NAME = "test_bucket" -KEY_PATH = "merel" +KEY_PATH = "matplotlib" COLOUR_LIST = ["blue", "green", "red"] FULL_PATH = f"s3://{BUCKET_NAME}/{KEY_PATH}" - matplotlib.use("Agg") # Disable interactive mode @@ -50,9 +49,10 @@ def overwrite(request): @pytest.fixture -def plot_writer(mocked_s3_bucket, credentials, mock_fs_args, save_args, overwrite): +def plot_writer(mocked_s3_bucket, credentials, mock_fs_args, save_args, overwrite, tmp_path): + full_path = f"s3://{BUCKET_NAME}/{tmp_path}" return MatplotlibWriter( - filepath=FULL_PATH, + filepath=full_path, credentials=credentials, fs_args=mock_fs_args, save_args=save_args,