From 4005b58e97da15244f0679bc50abbd09c95f528c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:27:23 -0500 Subject: [PATCH] Update moto requirement from ~=4.1.14 to ~=5.0.9 in /package (#1934) * Update moto requirement from ~=4.1.14 to ~=5.0.9 in /package Updates the requirements on [moto](https://github.com/getmoto/moto) to permit the latest version. - [Release notes](https://github.com/getmoto/moto/releases) - [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md) - [Commits](https://github.com/getmoto/moto/compare/4.1.14...5.0.9) --- updated-dependencies: - dependency-name: moto dependency-type: direct:production ... Signed-off-by: dependabot[bot] * fix lint Signed-off-by: ravi-kumar-pilla --------- Signed-off-by: dependabot[bot] Signed-off-by: ravi-kumar-pilla Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Huong Nguyen <32060364+Huongg@users.noreply.github.com> Co-authored-by: Ravi Kumar Pilla --- package/test_requirements.txt | 2 +- package/tests/test_integrations/test_sqlite_store.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/test_requirements.txt b/package/test_requirements.txt index 6f1d69b9e5..1c9e3ec12a 100644 --- a/package/test_requirements.txt +++ b/package/test_requirements.txt @@ -11,7 +11,7 @@ flake8~=7.0 isort~=5.11 matplotlib~=3.5 mypy~=1.0 -moto~=4.1.14 +moto~=5.0.9 psutil==5.9.6 # same as Kedro for now pylint~=3.0 pylint-pydantic>=0.3.0 diff --git a/package/tests/test_integrations/test_sqlite_store.py b/package/tests/test_integrations/test_sqlite_store.py index b60e7d8bca..924ff21ddb 100644 --- a/package/tests/test_integrations/test_sqlite_store.py +++ b/package/tests/test_integrations/test_sqlite_store.py @@ -7,7 +7,7 @@ import boto3 import pytest -from moto import mock_s3 +from moto import mock_aws from sqlalchemy import create_engine, func, select from sqlalchemy.orm import sessionmaker @@ -42,7 +42,7 @@ def aws_credentials(): @pytest.fixture(scope="class") def mocked_s3_bucket(aws_credentials): """S3 Mock Client""" - with mock_s3(): + with mock_aws(): conn = boto3.client("s3", region_name="us-east-1") conn.create_bucket(Bucket=BUCKET_NAME) yield conn