-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Write migrated environments to v2 (#3147)
- Loading branch information
Showing
7 changed files
with
139 additions
and
16 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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
from .dynamodb_wrapper import ( # noqa | ||
from .dynamodb_wrapper import ( | ||
DynamoEnvironmentAPIKeyWrapper, | ||
DynamoEnvironmentV2Wrapper, | ||
DynamoEnvironmentWrapper, | ||
DynamoIdentityWrapper, | ||
) | ||
|
||
__all__ = ( | ||
"DynamoEnvironmentAPIKeyWrapper", | ||
"DynamoEnvironmentV2Wrapper", | ||
"DynamoEnvironmentWrapper", | ||
"DynamoIdentityWrapper", | ||
) |
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
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
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
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
from unittest.mock import Mock | ||
|
||
import pytest | ||
from pytest_mock import MockerFixture | ||
|
||
|
||
@pytest.fixture() | ||
def mock_dynamo_env_wrapper(mocker): | ||
def mock_dynamo_env_wrapper(mocker: MockerFixture) -> Mock: | ||
return mocker.patch("environments.models.environment_wrapper") | ||
|
||
|
||
@pytest.fixture() | ||
def mock_dynamo_env_v2_wrapper(mocker: MockerFixture) -> Mock: | ||
return mocker.patch("environments.models.environment_v2_wrapper") |
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
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