From 105302a04b6b1766d632f83d0233c576fbd0b409 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(-) (limited to 'tests/route_tests.rs') 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