diff options
Diffstat (limited to 'tests/conftest.py')
| -rw-r--r-- | tests/conftest.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 5138f49..25eb457 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -124,7 +124,7 @@ def pg_config(settings: "Settings") -> PostgresConfig: def amt_client(settings: "Settings") -> MTurkClient: import boto3 - return boto3.client( + client = boto3.client( service_name="mturk", region_name="us-east-1", endpoint_url=str(settings.amt_endpoint), @@ -132,3 +132,8 @@ def amt_client(settings: "Settings") -> MTurkClient: aws_secret_access_key=settings.amt_secret_key, config=CLIENT_CONFIG, ) + + # Confirm we're only using the Sandbox for any unittests + assert "mturk-requester-sandbox" in client.meta.endpoint_url + + return client |
