dbusmock.templates.power_profiles_daemon ======================================== .. py:module:: dbusmock.templates.power_profiles_daemon .. autoapi-nested-parse:: power-profiles-daemon < 0.20 mock template This creates the expected methods and properties of the main net.hadess.PowerProfiles object. This provides only the non-deprecated D-Bus API as of version 0.9. Note that this template is deprecated: Version 0.20 listens on a different bus name/object path, it is provided in upower_power_profiles_daemon.py Attributes ---------- .. autoapisummary:: dbusmock.templates.power_profiles_daemon.__author__ dbusmock.templates.power_profiles_daemon.__copyright__ dbusmock.templates.power_profiles_daemon.BUS_NAME dbusmock.templates.power_profiles_daemon.MAIN_OBJ dbusmock.templates.power_profiles_daemon.MAIN_IFACE dbusmock.templates.power_profiles_daemon.SYSTEM_BUS Functions --------- .. autoapisummary:: dbusmock.templates.power_profiles_daemon.hold_profile dbusmock.templates.power_profiles_daemon.release_profile dbusmock.templates.power_profiles_daemon.load Module Contents --------------- .. py:data:: __author__ :value: 'Bastien Nocera' .. py:data:: __copyright__ :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ (c) 2021, Red Hat Inc. (c) 2017 - 2022 Martin Pitt """ .. raw:: html
.. py:data:: BUS_NAME :value: 'net.hadess.PowerProfiles' .. py:data:: MAIN_OBJ :value: '/net/hadess/PowerProfiles' .. py:data:: MAIN_IFACE :value: 'net.hadess.PowerProfiles' .. py:data:: SYSTEM_BUS :value: True .. py:function:: hold_profile(self, profile, reason, application_id) .. py:function:: release_profile(self, cookie) .. py:function:: load(mock, parameters)