diff options
| author | Max Nanis | 2026-02-26 21:20:14 -0500 |
|---|---|---|
| committer | Max Nanis | 2026-02-26 21:20:14 -0500 |
| commit | dadd9643feceac94a2b84d9a3d3dda667f17583d (patch) | |
| tree | 03e47204920fb05931df80a3278754215f42727e /jb/flow/maintenance.py | |
| parent | af66829e26cb05f182bef36ac06d58c7baa0ec1e (diff) | |
| download | amt-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/maintenance.py')
| -rw-r--r-- | jb/flow/maintenance.py | 7 |
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. |
