\r\n

51Degrees Device Detection Python  4.3

Device Detection services for 51Degrees Pipeline

device-detection-python.fiftyone_devicedetection_cloud.tests.test_cloud.DeviceDetectionTests Class Reference

Inheritance diagram for device-detection-python.fiftyone_devicedetection_cloud.tests.test_cloud.DeviceDetectionTests:

[legend]

Collaboration diagram for device-detection-python.fiftyone_devicedetection_cloud.tests.test_cloud.DeviceDetectionTests:

[legend]

Public Member Functions

def  test_pipeline_builder_cloud_engine_init (self)
Tests whether the device detection pipeline builder adds the correct engines when initialised with a resource key.
def  test_properties_cloud (self)
Tests whether a properties list is created on the cloud engine.
def  test_basic_get_cloud (self)
Check property lookup works.
def  test_missing_property_service_element_not_found (self)
Trigger the missing property service by requesting a property not available in any datafile.
def  test_engine_init_performance (self)
Test how long it takes for the engine to be initialised by looking at the metadata dictionary created on init.
def  test_missing_property_service_not_found_anywhere (self)
Trigger the missing property service by requesting a property not available in cloud.
def  test_cloud_request_origin (self)
Verify that making requests using a resource key that. More...

Public Attributes

 maxDiff

Member Function Documentation

◆ test_cloud_request_origin()

def device-detection-python.fiftyone_devicedetection_cloud.tests.test_cloud.DeviceDetectionTests.test_cloud_request_origin (   self )

Verify that making requests using a resource key that.

is limited to particular origins will fail or succeed in the expected scenarios. This is an integration test that uses the live cloud service so any problems with that service could affect the result of this test.