diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-09-18 14:59:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 14:59:42 -0400 |
commit | f036a651356686097e6743aa23a831200bd8b273 (patch) | |
tree | e8ddae47c8835dc30d1cd0b33bc32a4ee5a16cfb | |
parent | a12e68bbb424edadbea35bb2fc27d0715f747a18 (diff) | |
parent | 9acfacb5a5f6feccc3007371876c0b4fce6b3cde (diff) |
Merge pull request #582 from bowlofeggs/bowlofeggs-0.6.4-battery-test
Feature gate test_default_battery_movement
-rw-r--r-- | tests/layout_management_tests.rs | 5 |
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() { |