aboutsummaryrefslogtreecommitdiff
path: root/tests/models/test_assignment.py
diff options
context:
space:
mode:
authorstuppie2026-11-04 12:11:03 -0600
committerstuppie2026-11-04 12:11:03 -0600
commit671a7b1b02503cfa5c9aecd40c27a0c2729a285b (patch)
tree6cb1bd7c33e3e1d243ee5ae74decc57faaa5742d /tests/models/test_assignment.py
parente99ec6b7e38113a2237dc1ff402d8f4337c651d5 (diff)
downloadamt-jb-671a7b1b02503cfa5c9aecd40c27a0c2729a285b.tar.gz
amt-jb-671a7b1b02503cfa5c9aecd40c27a0c2729a285b.zip
strip out AMT
Diffstat (limited to 'tests/models/test_assignment.py')
-rw-r--r--tests/models/test_assignment.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/models/test_assignment.py b/tests/models/test_assignment.py
deleted file mode 100644
index ecaafe9..0000000
--- a/tests/models/test_assignment.py
+++ /dev/null
@@ -1,42 +0,0 @@
-from mypy_boto3_mturk.type_defs import (
- GetAssignmentResponseTypeDef,
-)
-
-from jb.models.assignment import Assignment, AssignmentStub
-
-
-class TestAssignmentStub:
-
- def test_init(self, assignment_stub: AssignmentStub):
- assert isinstance(assignment_stub, AssignmentStub)
- assert assignment_stub.id is None
-
- def test_record(self, assignment_stub_record: AssignmentStub):
- assert isinstance(assignment_stub_record, AssignmentStub)
- assert assignment_stub_record.id is not None
-
-
-class TestAssignment:
-
- def test_get_assignment(self, assignment_record: Assignment):
- assert isinstance(assignment_record, Assignment)
- assert assignment_record.id is not None
-
-
-class TestAssignmentResponse:
-
- def test_get_assignment_no_tsid(
- self, assignment_response_no_tsid: GetAssignmentResponseTypeDef
- ):
- assignment = Assignment.from_amt_get_assignment(
- assignment_response_no_tsid["Assignment"]
- )
- assert assignment.tsid is None
-
- def test_get_assignment_bad_tsid(
- self, assignment_response_bad_tsid: GetAssignmentResponseTypeDef
- ):
- assignment = Assignment.from_amt_get_assignment(
- assignment_response_bad_tsid["Assignment"]
- )
- assert assignment.tsid is None