TestDataManager¶
-
class
mpf.tests.TestDataManager.
TestDataManager
(data)¶ Bases:
mpf.core.data_manager.DataManager
Methods & Attributes
The TestDataManager has the following methods & attributes available. Note that methods & attributes inherited from the base class are not included here.
-
get_data
(section=None)¶ Return the value of this DataManager's data.
Parameters: section -- Optional string name of a section (dictionary key) for the data you want returned. Default is None which returns the entire dictionary.
-
remove_key
(key)¶ Remove key by name.
-
save_key
(key, value, delay_secs=0)¶ Update an individual key and then write the entire dictionary to disk.
Parameters: - key -- String name of the key to add/update.
- value -- Value of the key
- delay_secs -- Optional number of seconds to wait before writing the data to disk. Default is 0.
-
warning_log
(msg, *args, **kwargs)¶ Log a message at the warning level.
These messages will always be shown in the console and the log file.
-