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(-) 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 From 6e248a4d3cecab3953fd6223aaf246e09bbd2d5d Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 16 Apr 2021 14:50:11 +0300 Subject: Bump up version number --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9c1d5f1..f85fde3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gradecoin" -version = "0.1.0" +version = "0.2.0" authors = ["Yigit Sever "] edition = "2018" -- cgit v1.2.3-70-g09d2