Skip to content

Commit

Permalink
Try tmp path for bucket
Browse files Browse the repository at this point in the history
Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com>
  • Loading branch information
merelcht committed Nov 30, 2023
1 parent ddb999e commit 750f31a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kedro-datasets/tests/matplotlib/test_matplotlib_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 750f31a

Please sign in to comment.