Device Detection services for 51Degrees Pipeline

tests.test_performance_profile_default Namespace Reference

Classes

class  PerformanceProfileDefaultTests
 The engine keeps no name for the profile in use, so these tests compare the collection settings of the configuration the engine gives the native code with the settings each profile has there. More...

Functions

 collection_settings (config)
 Whether each collection is loaded into memory and how many items it caches, which are what a performance profile sets.
 profile_settings (setter)
 The collection settings the native code gives a profile.

Variables

 DATA_FILE
tuple COLLECTIONS
dict PROFILES

Function Documentation

◆ collection_settings()

collection_settings ( config)

Whether each collection is loaded into memory and how many items it caches, which are what a performance profile sets.

◆ profile_settings()

profile_settings ( setter)

The collection settings the native code gives a profile.

Variable Documentation

◆ COLLECTIONS

tuple tests.test_performance_profile_default.COLLECTIONS
Initial value:
= (
"Strings", "Properties", "Values", "Profiles", "Nodes", "ProfileOffsets")

◆ DATA_FILE

tests.test_performance_profile_default.DATA_FILE
Initial value:
= os.path.normpath(os.path.join(
os.path.dirname(os.path.abspath(__file__)), "..", "..", "..", "cxx",
"data", "device-detection", "51Degrees-LiteV4.1.hash"))

◆ PROFILES

dict tests.test_performance_profile_default.PROFILES
Initial value:
= {
"LowMemory": "setLowMemory",
"MaxPerformance": "setMaxPerformance",
"Balanced": "setBalanced",
"BalancedTemp": "setBalancedTemp",
"HighPerformance": "setHighPerformance",
}