\r\n

51Degrees Device Detection Python  4.4

Device Detection services for 51Degrees Pipeline

tests.test_cloud.DeviceDetectionTests Class Reference

Inheritance diagram for tests.test_cloud.DeviceDetectionTests:

[legend]

Collaboration diagram for 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. More...
def  test_properties_cloud (self)
Tests whether a properties list is created on the cloud engine. More...
def  test_basic_get_cloud (self)
Check property lookup works. More...
def  test_missing_property_service_element_not_found (self)
Trigger the missing property service by requesting a property not available in any datafile. More...
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. More...
def  test_missing_property_service_not_found_anywhere (self)
Trigger the missing property service by requesting a property not available in cloud. More...
def  test_cloud_request_origin (self)
Verify that making requests using a resource key that. More...

Public Attributes

Member Function Documentation

◆ test_basic_get_cloud()

def tests.test_cloud.DeviceDetectionTests.test_basic_get_cloud (   self )

Check property lookup works.

◆ test_cloud_request_origin()

def 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.

◆ test_engine_init_performance()

def tests.test_cloud.DeviceDetectionTests.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.

◆ test_missing_property_service_element_not_found()

def tests.test_cloud.DeviceDetectionTests.test_missing_property_service_element_not_found (   self )

Trigger the missing property service by requesting a property not available in any datafile.

◆ test_missing_property_service_not_found_anywhere()

def tests.test_cloud.DeviceDetectionTests.test_missing_property_service_not_found_anywhere (   self )

Trigger the missing property service by requesting a property not available in cloud.

◆ test_pipeline_builder_cloud_engine_init()

def tests.test_cloud.DeviceDetectionTests.test_pipeline_builder_cloud_engine_init (   self )

Tests whether the device detection pipeline builder adds the correct engines when initialised with a resource key.

◆ test_properties_cloud()

def tests.test_cloud.DeviceDetectionTests.test_properties_cloud (   self )

Tests whether a properties list is created on the cloud engine.

Member Data Documentation

◆ maxDiff

tests.test_cloud.DeviceDetectionTests.maxDiff