aboutsummaryrefslogtreecommitdiff
path: root/jb/flow
diff options
context:
space:
mode:
authorMax Nanis2026-02-26 21:20:14 -0500
committerMax Nanis2026-02-26 21:20:14 -0500
commitdadd9643feceac94a2b84d9a3d3dda667f17583d (patch)
tree03e47204920fb05931df80a3278754215f42727e /jb/flow
parentaf66829e26cb05f182bef36ac06d58c7baa0ec1e (diff)
downloadamt-jb-dadd9643feceac94a2b84d9a3d3dda667f17583d.tar.gz
amt-jb-dadd9643feceac94a2b84d9a3d3dda667f17583d.zip
check_hit_status to use manager param, and amt_stub_context usage in flow tests.
Diffstat (limited to 'jb/flow')
-rw-r--r--jb/flow/maintenance.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/jb/flow/maintenance.py b/jb/flow/maintenance.py
index 744ed1d..f8ca971 100644
--- a/jb/flow/maintenance.py
+++ b/jb/flow/maintenance.py
@@ -7,7 +7,10 @@ from jb.models.definitions import HitStatus
def check_hit_status(
- amt_hit_id: str, amt_hit_type_id: str, reason: Optional[str] = None
+ amtm: AMTManager,
+ amt_hit_id: str,
+ amt_hit_type_id: str,
+ reason: Optional[str] = None,
) -> HitStatus:
"""
(this used to be called "process_hit")
@@ -15,7 +18,7 @@ def check_hit_status(
the local state from that response.
"""
- hit_status = AMTManager.get_hit_status(amt_hit_id=amt_hit_id)
+ hit_status = amtm.get_hit_status(amt_hit_id=amt_hit_id)
# We're assuming that in the db this Hit is marked as Assignable, or
# else we wouldn't have called this function.