diff options
| author | Max Nanis | 2026-03-06 16:49:46 -0500 |
|---|---|---|
| committer | Max Nanis | 2026-03-06 16:49:46 -0500 |
| commit | 91d040211a4ed6e4157896256a762d3854777b5e (patch) | |
| tree | cd95922ea4257dc8d3f4e4cbe8534474709a20dc /tests/grliq/managers/test_forensic_results.py | |
| download | generalresearch-91d040211a4ed6e4157896256a762d3854777b5e.tar.gz generalresearch-91d040211a4ed6e4157896256a762d3854777b5e.zip | |
Initial commitv3.3.4
Diffstat (limited to 'tests/grliq/managers/test_forensic_results.py')
| -rw-r--r-- | tests/grliq/managers/test_forensic_results.py | 16 |
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 |
