summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2024-01-01 22:20:40 +0000
committerGitHub <noreply@github.com>2024-01-01 17:20:40 -0500
commit228da99489f876780feaf829f82933e07a37c084 (patch)
tree5fdb77451f6d79ead3469442873345fffe68c5ad /tests
parente71048e394626d8a2ae148e8bc92a11aeda1f116 (diff)
refactor: move around configuration-related files (#1370)
* rename general utils file * refactor: move around some configuration files * more shuffling around * fix some ugly formatting
Diffstat (limited to 'tests')
-rw-r--r--tests/arg_tests.rs4
-rw-r--r--tests/invalid_config_tests.rs4
-rw-r--r--tests/layout_management_tests.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/arg_tests.rs b/tests/arg_tests.rs
index 3bb05e95..af4df7b8 100644
--- a/tests/arg_tests.rs
+++ b/tests/arg_tests.rs
@@ -1,8 +1,8 @@
//! These tests are mostly here just to ensure that invalid results will be caught when passing arguments.
+mod util;
+
use assert_cmd::prelude::*;
use predicates::prelude::*;
-
-mod util;
use util::*;
#[test]
diff --git a/tests/invalid_config_tests.rs b/tests/invalid_config_tests.rs
index d000a5af..62e2a376 100644
--- a/tests/invalid_config_tests.rs
+++ b/tests/invalid_config_tests.rs
@@ -1,7 +1,7 @@
+mod util;
+
use assert_cmd::prelude::*;
use predicates::prelude::*;
-
-mod util;
use util::*;
// These tests are for testing some config file-specific options.
diff --git a/tests/layout_management_tests.rs b/tests/layout_management_tests.rs
index 2d4b617b..607eea9e 100644
--- a/tests/layout_management_tests.rs
+++ b/tests/layout_management_tests.rs
@@ -5,7 +5,7 @@ use bottom::constants::DEFAULT_BATTERY_LAYOUT;
use bottom::{
app::layout_manager::{BottomLayout, BottomWidgetType},
constants::{DEFAULT_LAYOUT, DEFAULT_WIDGET_ID},
- options::{layout_options::Row, Config},
+ options::config::{layout::Row, Config},
utils::error,
};
use toml_edit::de::from_str;