Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,12 @@ def test_matched_user_agents(self):
fd.process()

self.assertIsInstance(fd.device.useragents.value(), list)
self.assertEqual(len(fd.device.useragents.value()), 1)
# Since the detection result shape was unified in device-detection-cxx
# (issue #362), a single User-Agent produces one result - and so one
# matched User-Agent - per component the engine populates, rather than
# exactly one overall. The number depends on the data file, so assert
# that at least one is returned.
self.assertGreaterEqual(len(fd.device.useragents.value()), 1)

def test_value_types(self):
"""!
Expand Down
Loading