diff options
author | Yigit Sever | 2021-04-16 14:49:31 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-16 14:49:31 +0300 |
commit | e2c0e3c3ed963431c40aa8de0947702f7149c9d6 (patch) | |
tree | df4ca8a1c594ba27f74c3df070cfc71d6407d2a0 /tests/route_tests.rs | |
parent | 45d98cdbf95580ea7e21d17a0518993fe23914a0 (diff) | |
download | gradecoin-e2c0e3c3ed963431c40aa8de0947702f7149c9d6.tar.gz gradecoin-e2c0e3c3ed963431c40aa8de0947702f7149c9d6.tar.bz2 gradecoin-e2c0e3c3ed963431c40aa8de0947702f7149c9d6.zip |
Clean up tests
Diffstat (limited to 'tests/route_tests.rs')
-rw-r--r-- | tests/route_tests.rs | 22 |
1 files changed, 1 insertions, 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 @@ | |||
1 | #[cfg(test)] | 1 | #[cfg(test)] |
2 | mod tests { | 2 | mod tests { |
3 | use gradecoin::schema::{ | 3 | use gradecoin::schema::{Block, Db, InitialAuthRequest, MetuId, Transaction, User}; |
4 | create_database, AuthRequest, Block, Db, InitialAuthRequest, MetuId, Transaction, User, | ||
5 | }; | ||
6 | 4 | ||
7 | use gradecoin::routes::consensus_routes; | 5 | use gradecoin::routes::consensus_routes; |
8 | use warp::http::StatusCode; | 6 | use warp::http::StatusCode; |
@@ -101,24 +99,6 @@ FQIDAQAB | |||
101 | db | 99 | db |
102 | } | 100 | } |
103 | 101 | ||
104 | // /// Create a mock user that is allowed to be in gradecoin to be used in tests | ||
105 | // fn priviliged_mocked_user() -> AuthRequest { | ||
106 | // AuthRequest { | ||
107 | // student_id: String::from("e254275"), | ||
108 | // passwd: String::from("DtNX1qk4YF4saRH"), | ||
109 | // public_key: "NOT IMPLEMENTED".to_owned(), | ||
110 | // } | ||
111 | // } | ||
112 | |||
113 | // /// Create a mock user that is NOT allowed to be in gradecoin to be used in tests | ||
114 | // fn unpriviliged_mocked_user() -> AuthRequest { | ||
115 | // AuthRequest { | ||
116 | // student_id: String::from("foobarbaz"), | ||
117 | // passwd: String::from("DtNX1qk4YF4saRH"), | ||
118 | // public_key: "NOT IMPLEMENTED".to_owned(), | ||
119 | // } | ||
120 | // } | ||
121 | |||
122 | /// Create a mock transaction to be used in tests | 102 | /// Create a mock transaction to be used in tests |
123 | fn mocked_transaction() -> Transaction { | 103 | fn mocked_transaction() -> Transaction { |
124 | Transaction { | 104 | Transaction { |