Skip to content

Commit 25d3f05

Browse files
author
Lucas McDonald
committed
m
1 parent c8c88bc commit 25d3f05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

TestVectors/runtimes/python/src/aws_dbesdk_dynamodb_test_vectors/waiting_boto3_ddb_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import boto3
22

3-
class WaitingDynamoClient:
3+
class WaitingLocalDynamoClient:
44
"""
5-
boto3 DynamoDB client wrapper that wraps `create_table` and `delete_table` methods.
5+
boto3 DynamoDB client wrapper that wraps `create_table` and `delete_table` methods
6+
and connects to localhost:8000.
67
If these methods are called on this client, they will block returning until
78
the table is created/deleted.
89
This is the expected behavior of SDK clients in our Dafny code.
910
All other methods besides these are unchanged and will call the boto3 client directly.
1011
"""
1112
def __init__(self):
12-
self._client = boto3.client("dynamodb")
13+
self._client = boto3.client("dynamodb", endpoint_url="http://localhost:8000")
1314

1415
def __getattr__(self, name):
1516
if hasattr(self._client, name):

0 commit comments

Comments
 (0)