From 91d040211a4ed6e4157896256a762d3854777b5e Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Fri, 6 Mar 2026 16:49:46 -0500 Subject: Initial commit --- tests/grliq/managers/test_forensic_results.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/grliq/managers/test_forensic_results.py (limited to 'tests/grliq/managers/test_forensic_results.py') diff --git a/tests/grliq/managers/test_forensic_results.py b/tests/grliq/managers/test_forensic_results.py new file mode 100644 index 0000000..a837a64 --- /dev/null +++ b/tests/grliq/managers/test_forensic_results.py @@ -0,0 +1,16 @@ +class TestGrlIqCategoryResultsReader: + + def test_filter_category_results(self, grliq_dm, grliq_crr): + from generalresearch.grliq.models.forensic_result import ( + Phase, + GrlIqForensicCategoryResult, + ) + + # this is just testing that it doesn't fail + grliq_dm.create_dummy(is_attempt_allowed=True) + grliq_dm.create_dummy(is_attempt_allowed=True) + + res = grliq_crr.filter_category_results(limit=2, phase=Phase.OFFERWALL_ENTER)[0] + assert res.get("category_result") + assert isinstance(res["category_result"], GrlIqForensicCategoryResult) + assert res["user_agent"].os.family -- cgit v1.2.3