-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring: Addressing various pylint/isort/flake8 errors
- Loading branch information
Showing
2 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python 3 | ||
|
||
import pytest | ||
|
||
import mock | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def mock_s3_client(): | ||
with mock.patch("aioboto3.client") as mock_client: | ||
s3_client = mock.AsyncMock() | ||
s3_client.__aenter__.return_value = s3_client | ||
mock_client.return_value = s3_client | ||
yield s3_client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters