aboutsummaryrefslogtreecommitdiff
path: root/tests/grliq/managers/test_forensic_results.py
diff options
context:
space:
mode:
authorMax Nanis2026-03-06 16:49:46 -0500
committerMax Nanis2026-03-06 16:49:46 -0500
commit91d040211a4ed6e4157896256a762d3854777b5e (patch)
treecd95922ea4257dc8d3f4e4cbe8534474709a20dc /tests/grliq/managers/test_forensic_results.py
downloadgeneralresearch-3.3.4.tar.gz
generalresearch-3.3.4.zip
Initial commitv3.3.4
Diffstat (limited to 'tests/grliq/managers/test_forensic_results.py')
-rw-r--r--tests/grliq/managers/test_forensic_results.py16
1 files changed, 16 insertions, 0 deletions
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