feat: add user profile management with update and retrieval endpoints, enhance database setup for testing
This commit is contained in:
@@ -6,9 +6,15 @@ use user::test_user;
|
||||
|
||||
#[tokio::test]
|
||||
async fn user_main() {
|
||||
let db = setup_test_db("sqlite::memory:")
|
||||
.await
|
||||
.expect("Set up db failed!");
|
||||
std::env::set_var(
|
||||
"MANAGEMENT_DATABASE_URL",
|
||||
"postgres://postgres:postgres@localhost:5434/postgres",
|
||||
);
|
||||
std::env::set_var(
|
||||
"DATABASE_URL",
|
||||
"postgres://postgres:postgres@localhost:5434/postgres",
|
||||
);
|
||||
let db = setup_test_db().await.expect("Failed to set up test db");
|
||||
|
||||
test_user(&db).await;
|
||||
}
|
||||
|
Reference in New Issue
Block a user