From f0f96f83c2630e890a2cbcab53f77fd4c37e1684 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Thu, 19 Feb 2026 02:43:23 -0500 Subject: Models, Project files, some pytests, requirements.. etc --- tests/managers/hit.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/managers/hit.py (limited to 'tests/managers/hit.py') diff --git a/tests/managers/hit.py b/tests/managers/hit.py new file mode 100644 index 0000000..8fcd673 --- /dev/null +++ b/tests/managers/hit.py @@ -0,0 +1,18 @@ +from jb.decorators import HTM + + +class TestHitTypeManager: + + def test_create(self, 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 -- cgit v1.2.3