From a48838ad1d6d068fd633a2357993775839916b9b Mon Sep 17 00:00:00 2001 From: mhfowler Date: Thu, 28 Oct 2021 14:35:00 +0200 Subject: [PATCH] All tests are passing --- peach-web/src/routes/settings/admin.rs | 4 ++-- peach-web/src/tests.rs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/peach-web/src/routes/settings/admin.rs b/peach-web/src/routes/settings/admin.rs index d7495c3..2a7ff1b 100644 --- a/peach-web/src/routes/settings/admin.rs +++ b/peach-web/src/routes/settings/admin.rs @@ -1,4 +1,4 @@ -use log::{info}; + use rocket::request::{FlashMessage, Form}; use rocket::response::{Flash, Redirect}; use rocket::{get, post, uri}; @@ -8,7 +8,7 @@ use serde::{Serialize, Deserialize}; use peach_lib::config_manager; use peach_lib::config_manager::{load_peach_config}; -use peach_lib::password_utils; + use crate::error::PeachWebError; diff --git a/peach-web/src/tests.rs b/peach-web/src/tests.rs index 6773e15..a088f8a 100644 --- a/peach-web/src/tests.rs +++ b/peach-web/src/tests.rs @@ -5,6 +5,8 @@ use rocket::http::{ContentType, Status}; use rocket::local::Client; use rocket_contrib::json; +use crate::utils::{build_json_response}; + use super::rocket; // helper function to test correct retrieval and content of a file