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

 setUp (self)
 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 (self)
 Tests whether a properties list is created on the cloud engine.
 test_basic_get_cloud (self)
 Check property lookup works.
 test_missing_property_service_element_not_found (self)
 Trigger the missing property service by requesting a property not available in any datafile.
 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_not_found_anywhere (self)
 Trigger the missing property service by requesting a property not available in cloud.
 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.

Public Attributes

 resource_key = find_resource_key()

Member Function Documentation

◆ setUp()

tests.test_cloud.DeviceDetectionTests.setUp ( self)

◆ test_basic_get_cloud()

tests.test_cloud.DeviceDetectionTests.test_basic_get_cloud ( self)

Check property lookup works.

◆ test_cloud_request_origin()

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()

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()

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()

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()

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()

tests.test_cloud.DeviceDetectionTests.test_properties_cloud ( self)

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

Member Data Documentation

◆ resource_key

tests.test_cloud.DeviceDetectionTests.resource_key = find_resource_key()