From 228da99489f876780feaf829f82933e07a37c084 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Mon, 1 Jan 2024 22:20:40 +0000 Subject: refactor: move around configuration-related files (#1370) * rename general utils file * refactor: move around some configuration files * more shuffling around * fix some ugly formatting --- tests/arg_tests.rs | 4 ++-- tests/invalid_config_tests.rs | 4 ++-- tests/layout_management_tests.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') 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; -- cgit v1.2.3