craete login tests

This commit is contained in:
2023-04-03 17:21:34 +02:00
parent d50f3d9746
commit ff73accb52
7 changed files with 103 additions and 62 deletions

View File

@ -1,4 +1,4 @@
use rot::{model::user::Users, rest};
use rot::rest;
use sqlx::SqlitePool;
#[macro_use]
@ -10,7 +10,6 @@ async fn rocket() -> _ {
//let pool = SqlitePool::connect(":memory:").await.unwrap();
let pool = SqlitePool::connect("db.sqlite").await.unwrap(); //TODO: fixme
let users = Users::new(&pool).await.unwrap(); //TODO: fixme
rest::start(pool)
}