aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/hit.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/hit.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/hit.py')
-rw-r--r--tests/managers/hit.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/managers/hit.py b/tests/managers/hit.py
deleted file mode 100644
index cb2b35a..0000000
--- a/tests/managers/hit.py
+++ /dev/null
@@ -1,25 +0,0 @@
-from jb.models import Question
-
-
-class TestHitQuestionManager:
-
- def test_base(self, question_record):
- assert isinstance(question_record, Question)
- assert question_record.id is None
-
-
-class TestHitTypeManager:
-
- def test_create(self, htm, hit_type_with_amt_id):
- assert hit_type_with_amt_id.id is None
- htm.create(hit_type_with_amt_id)
- assert hit_type_with_amt_id.id is not None
-
- res = htm.filter_active()
- assert len(res) == 1
-
- hit_type_with_amt_id.min_active = 0
- htm.set_min_active(hit_type_with_amt_id)
-
- res = htm.filter_active()
- assert len(res) == 0