Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed May 28, 2024
1 parent e2b617a commit 8e6d901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def mock_aws() -> Generator[None, None, None]:
for k in (
"AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY",
"AWS_ENDPOINT_URL",
"AWS_ENDPOINT_URL_DYNAMODB",
"AWS_REGION",
"AWS_DEFAULT_REGION",
):
Expand All @@ -42,7 +42,7 @@ def mock_aws() -> Generator[None, None, None]:
server = ThreadedMotoServer(port=0)
server.start()
port = server._server.socket.getsockname()[1]
os.environ["AWS_ENDPOINT_URL"] = f"http://127.0.0.1:{port}"
os.environ["AWS_ENDPOINT_URL_DYNAMODB"] = f"http://127.0.0.1:{port}"

with mock_dynamodb():
yield
Expand Down

0 comments on commit 8e6d901

Please sign in to comment.