From e2c0e3c3ed963431c40aa8de0947702f7149c9d6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 16 Apr 2021 14:49:31 +0300 Subject: Clean up tests --- tests/route_tests.rs | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/tests/route_tests.rs b/tests/route_tests.rs index f3fbb0e..3d8b7f4 100644 --- a/tests/route_tests.rs +++ b/tests/route_tests.rs @@ -1,8 +1,6 @@ #[cfg(test)] mod tests { - use gradecoin::schema::{ - create_database, AuthRequest, Block, Db, InitialAuthRequest, MetuId, Transaction, User, - }; + use gradecoin::schema::{Block, Db, InitialAuthRequest, MetuId, Transaction, User}; use gradecoin::routes::consensus_routes; use warp::http::StatusCode; @@ -101,24 +99,6 @@ FQIDAQAB db } - // /// Create a mock user that is allowed to be in gradecoin to be used in tests - // fn priviliged_mocked_user() -> AuthRequest { - // AuthRequest { - // student_id: String::from("e254275"), - // passwd: String::from("DtNX1qk4YF4saRH"), - // public_key: "NOT IMPLEMENTED".to_owned(), - // } - // } - - // /// Create a mock user that is NOT allowed to be in gradecoin to be used in tests - // fn unpriviliged_mocked_user() -> AuthRequest { - // AuthRequest { - // student_id: String::from("foobarbaz"), - // passwd: String::from("DtNX1qk4YF4saRH"), - // public_key: "NOT IMPLEMENTED".to_owned(), - // } - // } - /// Create a mock transaction to be used in tests fn mocked_transaction() -> Transaction { Transaction { -- cgit v1.2.3-70-g09d2