51Degrees Device Detection Python  4.2

Device Detection services for 51Degrees Pipeline
  • device-detection-python
  • fiftyone_devicedetection_onpremise
  • tests
  • test_devicedetection
  • DeviceDetectionTests

device-detection-python.fiftyone_devicedetection_onpremise.tests.test_devicedetection.DeviceDetectionTests Class Reference

Inheritance diagram for device-detection-python.fiftyone_devicedetection_onpremise.tests.test_devicedetection.DeviceDetectionTests:

[legend]

Collaboration diagram for device-detection-python.fiftyone_devicedetection_onpremise.tests.test_devicedetection.DeviceDetectionTests:

[legend]

Public Member Functions

def  test_pipeline_builder_shareusage_init (self)
Tests whether the device detection pipeline builder adds the usage sharing engine when initialised with a datafile.
def  test_on_premise_engine_datafile (self)
Tests whether a datafile (for the update service) is added when auto_update is set.
def  test_properties_onpremise (self)
Tests whether a properties list is created on the on premise engine.
def  test_evidencekey_filter_onpremise (self)
Tests whether the on premise evidence key filter works.
def  test_basic_get_onpremise (self)
Check property lookup works.
def  test_process_with_no_evidence (self)
Process a FlowData which does not have any evidence. More...
def  test_process_with_empty_user_agent (self)
Process a FlowData with an empty user agent.
def  test_process_with_no_headers (self)
Process a FlowData with no headers.
def  test_process_with_no_useful_headers (self)
Process a FlowData with no useful headers.
def  test_case_insensitive_evidence_keys (self)
Process a FlowData with case insensitive evidence keys.
def  test_missing_property_service_not_found_anywhere (self)
Trigger the missing property service by requesting a property not available in any datafile.
def  test_missing_property_service_not_found_in_current (self)
Trigger the missing property service by requesting a property not available in the current datafile.
def  test_excluded_property (self)
Test error if accessing property that has been restricted.
def  test_evidencekey_filter_contains_user_agent (self)
Test if evidence key filter with header.user-agent.
def  test_evidencekey_filter_contains_device_stock_ua (self)
Test if evidence key filter with header.device-stock-ua.
def  test_evidencekey_filter_contains_query_params (self)
Test if evidence key filter with query.user-agent query.device-stock-ua.
def  test_evidencekey_filter_case_insensitive_keys (self)
Test evidence key filter with case insensitive keys.
def  test_evidencekey_filter_overrides (self)
Test evidence key filter with overrides in cookies and query string.
def  test_profile_overrides (self)
Test profile overrides.
def  test_profile_overrides_no_headers (self)
Test profile overrides no headers.
def  test_profile_overrides_deviceid (self)
Test profile overrides with device ids.
def  test_device_id (self)
Test profile overrides with device ids.
def  test_build_from_config (self)
def  test_no_element_exists (self)
Access flow element that doesn't exist in pipeline.
def  test_has_value_false (self)
Test aspect property value returns false for has value.
def  test_matched_user_agents (self)
Test aspect property value returns false for has value.
def  test_value_types (self)
Test type is returned correctly for property.
def  test_available_properties (self)
Test properties that come back from getProperties actually exist in engine.
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_validate_data_true (self)
Validate whether has_value returns correctly with valid evidence.
def  test_validate_data_false (self)
Validate whether has_value returns correctly with invalid evidence.
def  test_engine_reload (self)
Refresh the engine.
def  process_user_agent_list (self, pipeline)
def  test_mass_user_agent_processing_results (self)
Test the 20,000 user agent process results are correct.
def  test_benchmark_low_memory (self)
Benchmark using low_memory.
def  test_benchmark_high_performance (self)
Benchmark using high performance.
def  test_benchmark_balanced (self)
Benchmark using balanced.

Member Function Documentation

◆ test_process_with_no_evidence()

def device-detection-python.fiftyone_devicedetection_onpremise.tests.test_devicedetection.DeviceDetectionTests.test_process_with_no_evidence (   self )

Process a FlowData which does not have any evidence.

This should not throw an error and all 51Degrees engines should set the default aspect properties