From af66829e26cb05f182bef36ac06d58c7baa0ec1e Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Thu, 26 Feb 2026 20:29:41 -0500 Subject: AMTManager moved to fixture, and dectorator with parameters on tasks and init / non-static class appraoch. More assertion checks and typing. TestMTurkClient seperated from TestAMTManger --- tests/conftest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/conftest.py') 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 -- cgit v1.2.3