From 0b540ecf04fcbf237531f044dbe7399dc4e240e0 Mon Sep 17 00:00:00 2001 From: Rohan Weeden Date: Wed, 9 Oct 2024 12:34:47 -0400 Subject: [PATCH] Update dev dependencies --- pyproject.toml | 2 +- tests/conftest.py | 4 ++-- tox.ini | 9 ++++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c75b956..a7ccf62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ xml = ["lxml"] [tool.poetry.group.dev.dependencies] boto3 = "^1.18" -moto = "^4.0.1" +moto = "^5.0.0" pytest = "^8.0.2" pytest-cov = "^4.0.0" pytest-mock = "^3.8.2" diff --git a/tests/conftest.py b/tests/conftest.py index d3c26a8..99af07c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,7 +3,7 @@ import boto3 import pytest -from moto import mock_s3 +from moto import mock_aws @pytest.fixture @@ -18,7 +18,7 @@ def aws_credentials(): @pytest.fixture def s3_resource(aws_credentials): - with mock_s3(): + with mock_aws(): yield boto3.resource("s3") diff --git a/tox.ini b/tox.ini index 2f03afd..1cc35fe 100644 --- a/tox.ini +++ b/tox.ini @@ -16,12 +16,15 @@ python = allowlist_externals = poetry deps = boto3~=1.18 - moto~=4.0 - pytest~=7.1 - pytest-mock~=3.8.2 + moto~=5.0 + pytest~=8.1 + pytest-mock~=3.8 jp14: jsonpath-ng~=1.4.0 jp15: jsonpath-ng~=1.5.0 jp16: jsonpath-ng~=1.6.0 + # s3fs + moto breaks due to an issue with aiobotocore. + # https://github.com/aio-libs/aiobotocore/issues/755 + s3fs~=0.4.2 extras = Xnone: Xall: all