This commit is contained in:
2025-11-09 18:20:29 +01:00
parent 81571e4c64
commit da0f2ae8ab
10 changed files with 147 additions and 63 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
mod common;
use anyhow::Result;
use common::{acquire_db_lock, body_to_vec, TestApp};
use common::{acquire_db_lock, body_to_vec, TestApp, TestUserRole};
use serde::Deserialize;
use serde_json::json;
use uuid::Uuid;
@@ -53,7 +53,7 @@ impl TestContext {
let app = TestApp::new().await?;
let username = format!("{prefix}_user");
let password = format!("{prefix}_pw");
app.insert_user(&username, &password, "admin").await?;
app.insert_user(&username, TestUserRole::Owner).await?;
let token = app.login_token(&username, &password).await?;
let first_id =