aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/test_hit.py
diff options
context:
space:
mode:
authorstuppie2026-11-04 12:11:03 -0600
committerstuppie2026-11-04 12:11:03 -0600
commit671a7b1b02503cfa5c9aecd40c27a0c2729a285b (patch)
tree6cb1bd7c33e3e1d243ee5ae74decc57faaa5742d /tests/managers/test_hit.py
parente99ec6b7e38113a2237dc1ff402d8f4337c651d5 (diff)
downloadamt-jb-671a7b1b02503cfa5c9aecd40c27a0c2729a285b.tar.gz
amt-jb-671a7b1b02503cfa5c9aecd40c27a0c2729a285b.zip
strip out AMT
Diffstat (limited to 'tests/managers/test_hit.py')
-rw-r--r--tests/managers/test_hit.py50
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/managers/test_hit.py b/tests/managers/test_hit.py
deleted file mode 100644
index 7227e4d..0000000
--- a/tests/managers/test_hit.py
+++ /dev/null
@@ -1,50 +0,0 @@
-from jb.managers.hit import HitManager, HitTypeManager
-from jb.models.hit import Hit, HitQuestion, HitType
-
-
-class TestHitQuestionManager:
-
- def test_base(self, question_record: HitQuestion):
- assert isinstance(question_record, HitQuestion)
- assert isinstance(question_record.id, int)
-
-
-class TestHitTypeManager:
-
- def test_create(self, htm: HitTypeManager, hit_type_record: HitType):
-
- assert isinstance(hit_type_record.id, int)
- assert isinstance(hit_type_record.amt_hit_type_id, str)
-
- count1 = len(htm.filter_active())
- # assert count1 == 1
-
- hit_type_record.min_active = 0
- htm.set_min_active(hit_type=hit_type_record)
-
- count2 = len(htm.filter_active())
- assert count1 - 1 == count2
-
-
-class TestHitManager:
-
- # def test_create
-
- # def update_status
-
- # def update_hit
-
- # def get_from_amt_id
-
- # get_from_amt_id_if_exists
-
- def test_get_active_count(self, hm: HitManager, hit_record: Hit):
-
- count = hm.get_active_count(hit_type_id=999_999_999)
- assert isinstance(count, int)
- assert count == 0
-
- count = hm.get_active_count(hit_type_id=hit_record.hit_type_id)
- assert count == 1
-
- # filter_active_ids