Nils Winkler
|
31990490fa
|
Added test for the "no" energy tool case
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
5ab0cc5388
|
Fixed ioreg - no battery test case
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
7ea1a58216
|
Added comments on the test functions
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
629b8522e5
|
Ensuring that output is always two digits at least
Show "04" instead of just "4".
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
7602b1da32
|
Added tests for WMIC
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
601202e816
|
Simplified ioreg, added tests for no status
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
486c9e1382
|
Consolidated cases for acpi
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
3aed38c79f
|
Updated acpi tests
Trying to cover the currently implemented tests, but I don't have a
system with acpi available for testing. Relying on assumptions so far.
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
812f49e457
|
Started first tests for acpi command
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
a4824cc8c8
|
Changed pmset test to use printf
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
b7b8a0afe0
|
Completed tests for upower command
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
5ab23e3ca0
|
Added test cases for acpi, upower and ioreg, need to fill in data
The one for ioreg works fine, the others currently fail.
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
b4c6029706
|
Made setup function for _command_exists generic
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
28c41efcbc
|
Simplified setup fixture for pmset/_command_exists
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
c221648a7f
|
Refactored setup function for pmset
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
c8d86858fd
|
Added setup function for _command_exists that works for pmset
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
d0b3205de0
|
Added an additional test case and a fix for using the pmset command
The other commands still need to be mocked and tested/fixed, too.
|
2017-11-02 06:46:01 +01:00 |
Nils Winkler
|
ef28b2788b
|
Added test cases for battery_percentage with pmset
Need to figure out way to ensure that pmset is used every time...
|
2017-11-02 06:46:01 +01:00 |