\r\n

51Degrees Device Detection Python  4.4

Device Detection services for 51Degrees Pipeline

tests.test_properties Namespace Reference

Classes

class  PropertyTests
string  header_file_path = "./tests/51Degrees.csv"
tuple  mobile_ua
list  exclude_properties = ["setheaderbrowseraccept-ch", "setheaderplatformaccept-ch", "setheaderhardwareaccept-ch"]
 resource_key = os.environ["resource_key"]  properties_list = get_properties_from_header_file(header_file_path)  cloudRequestEngine = CloudRequestEngine({"resource_key": resource_key})  deviceDetectionCloudEngine = DeviceDetectionCloud()  pipeline = PipelineBuilder() \ string  data_file = "./src/fiftyone_devicedetection_onpremise/cxx/device-detection-data/51Degrees-LiteV4.1.hash"  deviceDetectionOnPremiseEngine

Variable Documentation

◆ cloudRequestEngine

tests.test_properties.cloudRequestEngine = CloudRequestEngine({"resource_key": resource_key})

◆ data_file

string tests.test_properties.data_file = "./src/fiftyone_devicedetection_onpremise/cxx/device-detection-data/51Degrees-LiteV4.1.hash"

◆ deviceDetectionCloudEngine

tests.test_properties.deviceDetectionCloudEngine = DeviceDetectionCloud()

◆ deviceDetectionOnPremiseEngine

tests.test_properties.deviceDetectionOnPremiseEngine
Initial value:
1 = DeviceDetectionOnPremise(
2  data_file_path = data_file,
3  licence_keys = "",
4  auto_update=False)

◆ exclude_properties

list tests.test_properties.exclude_properties = ["setheaderbrowseraccept-ch", "setheaderplatformaccept-ch", "setheaderhardwareaccept-ch"]

◆ header_file_path

string tests.test_properties.header_file_path = "./tests/51Degrees.csv"

◆ mobile_ua

tuple tests.test_properties.mobile_ua
Initial value:
1 = ("Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) "
2  "AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile"
3  "/11D167 Safari/9537.53")

◆ pipeline

tests.test_properties.pipeline = PipelineBuilder() \

◆ properties_list

tests.test_properties.properties_list = get_properties_from_header_file(header_file_path)

◆ resource_key

tests.test_properties.resource_key = os.environ["resource_key"]
On This Page