From af66829e26cb05f182bef36ac06d58c7baa0ec1e Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Thu, 26 Feb 2026 20:29:41 -0500 Subject: 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 --- jb/managers/hit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jb/managers/hit.py') diff --git a/jb/managers/hit.py b/jb/managers/hit.py index 7d60b63..533f45a 100644 --- a/jb/managers/hit.py +++ b/jb/managers/hit.py @@ -163,8 +163,9 @@ class HitTypeManager(PostgresManager): with conn.cursor() as c: c.execute(query, data) conn.commit() - assert c.rowcount == 1, c.rowcount + row_cnt = c.rowcount + assert row_cnt == 1, f"Expected 1 row updated, got {row_cnt}" return None -- cgit v1.2.3