aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/test_amt.py
diff options
context:
space:
mode:
authorMax Nanis2026-03-03 09:57:08 +0000
committerMax Nanis2026-03-03 09:57:08 +0000
commitcb3a2fa810b19a441cc7baf42178c4a2d393663a (patch)
treeb2ad366338249416f029e1820a7d02e9caf87c57 /tests/managers/test_amt.py
parent19a97da80ae740bb1cf92fc911e6efc210aa05a8 (diff)
parent979e789c388e7a1e9a90e448d82e297c9c296a3e (diff)
downloadamt-jb-cb3a2fa810b19a441cc7baf42178c4a2d393663a.tar.gz
amt-jb-cb3a2fa810b19a441cc7baf42178c4a2d393663a.zip
Merges pull request #1
Deploy Marquee (basic for now)
Diffstat (limited to 'tests/managers/test_amt.py')
-rw-r--r--tests/managers/test_amt.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/managers/test_amt.py b/tests/managers/test_amt.py
index 372cb07..a20d0d4 100644
--- a/tests/managers/test_amt.py
+++ b/tests/managers/test_amt.py
@@ -9,6 +9,37 @@ from mypy_boto3_mturk.type_defs import (
ListHITsResponseTypeDef,
)
+# from jb.decorators import HM
+# from jb.flow.tasks import refill_hits, check_stale_hits, check_expired_hits
+
+
+# def test_refill_hits(
+# set_hit_types_in_db_min_active_0,
+# hit_type_record, expire_all_hits, amt_manager
+# ):
+
+# assert HM.get_active_count(hit_type_in_db.id) == 0
+# assert hit_type_in_db.min_active > 0
+# refill_hits()
+# assert HM.get_active_count(hit_type_in_db.id) == hit_type_in_db.min_active
+
+# amt_hit_ids = HM.filter_active_ids(hit_type_id=hit_type_in_db.id)
+# amt_hit_id = list(amt_hit_ids)[0]
+# hit, _ = amt_manager.get_hit_if_exists(amt_hit_id=amt_hit_id)
+# assert hit
+
+
+# def test_check_stale_hits():
+# # todo: I'd have to create some purposely stale hits.
+# # just make sure it runs for now
+# check_stale_hits()
+
+
+# def test_check_expired_hits():
+# # todo: I'd have to create some purposely expired hits.
+# # just make sure it runs for now
+# check_expired_hits()
+
class TestMTurkClient: