blob: a837a640e1d5c8b07502360066043e1414045505 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|