Started first tests for acpi command

pull/1080/head
Nils Winkler 2017-10-23 08:14:35 +02:00
parent a4824cc8c8
commit 812f49e457
1 changed files with 1 additions and 10 deletions

View File

@ -80,7 +80,7 @@ function setup_acpi {
percent="$1"
function acpi {
echo "-InternalBattery-0 (id=12345) ""${percent}""; discharging; 16:00 remaining present: true"
printf "Battery 0: Charging, %s, 01:02:48 until charged" "${percent}"
}
}
@ -102,15 +102,6 @@ function setup_acpi {
assert_output "98"
}
@test 'plugins battery: battery-percentage with acpi, 98.5%' {
setup_command_exists "acpi"
setup_acpi "98.5%"
run battery_percentage
assert_output "98"
}
@test 'plugins battery: battery-percentage with acpi, 4%' {
setup_command_exists "acpi"