summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Barlow <randy@electronsweatshop.com>2021-09-18 13:26:20 -0400
committerRandy Barlow <randy@electronsweatshop.com>2021-09-18 13:46:01 -0400
commit9acfacb5a5f6feccc3007371876c0b4fce6b3cde (patch)
treeccf8aab623b42900283197faeb7d736f902dbd63
parent7e9e18faac09fe00a3ad796cd4837de7e962b5df (diff)
Feature gate test_default_battery_movement
test_default_battery_movement() is now feature gated on the battery feature. fixes #581 Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
-rw-r--r--tests/layout_management_tests.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/layout_management_tests.rs b/tests/layout_management_tests.rs
index 4b4f7a9f..3c341d0b 100644
--- a/tests/layout_management_tests.rs
+++ b/tests/layout_management_tests.rs
@@ -1,7 +1,9 @@
//! Mocks layout management, so we can check if we broke anything.
use bottom::app::layout_manager::{BottomLayout, BottomWidgetType};
-use bottom::constants::{DEFAULT_BATTERY_LAYOUT, DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
+#[cfg(feature = "battery")]
+use bottom::constants::DEFAULT_BATTERY_LAYOUT;
+use bottom::constants::{DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
use bottom::options::{layout_options::Row, Config};
use bottom::utils::error;
@@ -126,6 +128,7 @@ fn test_default_movement() {
);
}
+#[cfg(feature = "battery")]
#[test]
/// Tests battery movement in the default setup.
fn test_default_battery_movement() {