Skip to content

Test org.kde.Solid.PowerManagement interface

Fushan Wen requested to merge work/fuf/testdbus into master

The code mainly contains:

  1. UPower mock implementation: To support the upower backend and provide custom information for testing.
  2. Private DBus daemon setup: To mock UPower DBus interface, a private DBus session has to be set up so the test can register a system bus.
  3. Actual testing code: Currently two properties are tested, one is currentProfile, the other is batteryRemainingTime. This test will try to mock different data in the UPower backend, and check the interface can provide correct information.
Edited by Fushan Wen

Merge request reports

Loading