aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/amt.py
diff options
context:
space:
mode:
authorMax Nanis2026-02-26 15:51:49 -0500
committerMax Nanis2026-02-26 15:51:49 -0500
commit0bf32fadd85d5938ae29d489efdd82e2cd137300 (patch)
tree814e8128947fb604dc7cc3509e72260d95757590 /tests/managers/amt.py
parent04aee0dc7e908ce020d2d2c3f8ffb4a96424b883 (diff)
downloadamt-jb-0bf32fadd85d5938ae29d489efdd82e2cd137300.tar.gz
amt-jb-0bf32fadd85d5938ae29d489efdd82e2cd137300.zip
Passing Managers into flow tasks for better pytest usage. Conftests broken out into seperate fixture files. Extensive type hinting.
Diffstat (limited to 'tests/managers/amt.py')
-rw-r--r--tests/managers/amt.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/managers/amt.py b/tests/managers/amt.py
deleted file mode 100644
index a847582..0000000
--- a/tests/managers/amt.py
+++ /dev/null
@@ -1,22 +0,0 @@
-from jb.managers.amt import AMTManager
-
-
-def test_create_hit_type(hit_type):
- assert hit_type.amt_hit_type_id is None
- AMTManager.create_hit_type(hit_type=hit_type)
- assert hit_type.amt_hit_type_id is not None
-
-
-def test_create_hit_with_hit_type(hqm, htm, hm, hit_type_with_amt_id, question):
- question = hqm.get_or_create(question)
-
- hit_type = hit_type_with_amt_id
- hit_type = [
- x for x in htm.filter_active() if x.amt_hit_type_id == hit_type.amt_hit_type_id
- ][0]
-
- hit = AMTManager.create_hit_with_hit_type(hit_type=hit_type, question=question)
- assert hit.amt_hit_id is not None
- assert hit.id is None
- hm.create(hit)
- assert hit.id is not None