diff options
| author | Max Nanis | 2026-02-26 20:29:41 -0500 |
|---|---|---|
| committer | Max Nanis | 2026-02-26 20:29:41 -0500 |
| commit | af66829e26cb05f182bef36ac06d58c7baa0ec1e (patch) | |
| tree | 2848a9223e7d4d680f3e93fc8dfcc7545f716abd /jb/managers/hit.py | |
| parent | 0bf32fadd85d5938ae29d489efdd82e2cd137300 (diff) | |
| download | amt-jb-af66829e26cb05f182bef36ac06d58c7baa0ec1e.tar.gz amt-jb-af66829e26cb05f182bef36ac06d58c7baa0ec1e.zip | |
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
Diffstat (limited to 'jb/managers/hit.py')
| -rw-r--r-- | jb/managers/hit.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
