aboutsummaryrefslogtreecommitdiff
path: root/tests/grliq/managers/test_forensic_results.py
diff options
context:
space:
mode:
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