From 812f49e4570261f0806e6ef26f4aaaf0b5121ce5 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Mon, 23 Oct 2017 08:14:35 +0200 Subject: [PATCH] Started first tests for acpi command --- test/plugins/battery.plugin.bats | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/plugins/battery.plugin.bats b/test/plugins/battery.plugin.bats index b9229bde..5e48dfba 100644 --- a/test/plugins/battery.plugin.bats +++ b/test/plugins/battery.plugin.bats @@ -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"