aboutsummaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorMax Nanis2026-02-26 20:29:41 -0500
committerMax Nanis2026-02-26 20:29:41 -0500
commitaf66829e26cb05f182bef36ac06d58c7baa0ec1e (patch)
tree2848a9223e7d4d680f3e93fc8dfcc7545f716abd /tests/conftest.py
parent0bf32fadd85d5938ae29d489efdd82e2cd137300 (diff)
downloadamt-jb-af66829e26cb05f182bef36ac06d58c7baa0ec1e.tar.gz
amt-jb-af66829e26cb05f182bef36ac06d58c7baa0ec1e.zip
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
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py7
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