Skip to content

Commit

Permalink
moto.mock_s3 -> moto.mock_aws
Browse files Browse the repository at this point in the history
name change in library
  • Loading branch information
cp2boston committed Jan 31, 2024
1 parent 3cf4e11 commit 509e50d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Release Notes
* Documentation Changes
* Added dask string storage note to "Other Limitations" in Dask documentation :pr:`1799`
* Testing Changes
* moto >= 5.0.0 renamed ``mock_s3`` to ``mock_aws`` :pr:`1799`

Thanks to the following people for contributing to this release:
:user:`cp2boston`, :user:`gsheni`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test = [
"pytest-cov >= 2.10.1",
"pytest-xdist >= 2.1.0",
"boto3 >= 1.10.45",
"moto[all] >= 3.0.7",
"moto[all] >= 5.0.0",
"smart-open >= 5.0.0",
"pyarrow >= 14.0.1"
]
Expand Down
4 changes: 2 additions & 2 deletions woodwork/tests/accessor/test_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,9 +822,9 @@ def test_categorical_dtype_serialization(serialize_df, tmpdir):
def s3_client():
# TODO: Fix Moto tests needing to explicitly set permissions for objects
_environ = os.environ.copy()
from moto import mock_s3
from moto import mock_aws

Check warning on line 825 in woodwork/tests/accessor/test_serialization.py

View check run for this annotation

Codecov / codecov/patch

woodwork/tests/accessor/test_serialization.py#L825

Added line #L825 was not covered by tests

with mock_s3():
with mock_aws():

Check warning on line 827 in woodwork/tests/accessor/test_serialization.py

View check run for this annotation

Codecov / codecov/patch

woodwork/tests/accessor/test_serialization.py#L827

Added line #L827 was not covered by tests
s3 = boto3.resource("s3")
yield s3
os.environ.clear()
Expand Down

0 comments on commit 509e50d

Please sign in to comment.