Device Detection services for 51Degrees Pipeline

tests.test_devicedetection Namespace Reference

Classes

class  DeviceDetectionTests
class  DeviceDetectionCacheTests

Variables

str data_file = "../../cxx/data/device-detection/51Degrees-LiteV4.1.hash"
str mobile_ua = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_2 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Mobile/15C114"
float minMobilePercentage = 0.72
float maxUnknownPercentage = 0.002
 newline
 reader = csv.reader(file)
 user_agents = list(reader)
 no_user_agents = len(user_agents)

Variable Documentation

◆ data_file

str tests.test_devicedetection.data_file = "../../cxx/data/device-detection/51Degrees-LiteV4.1.hash"

◆ maxUnknownPercentage

float tests.test_devicedetection.maxUnknownPercentage = 0.002

◆ minMobilePercentage

float tests.test_devicedetection.minMobilePercentage = 0.72

◆ mobile_ua

str tests.test_devicedetection.mobile_ua = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_2 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Mobile/15C114"

◆ newline

tests.test_devicedetection.newline

◆ no_user_agents

tests.test_devicedetection.no_user_agents = len(user_agents)

◆ reader

tests.test_devicedetection.reader = csv.reader(file)

◆ user_agents

tests.test_devicedetection.user_agents = list(reader)