mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-14 13:08:27 +03:00
feat: migrate tests utils to use db_* interface
This commit is contained in:
parent
81ad030338
commit
0c1a82b4c5
1 changed files with 2 additions and 4 deletions
|
@ -27,13 +27,11 @@ macro_rules! get_cookie {
|
|||
}
|
||||
|
||||
pub async fn delete_user(name: &str, data: &Data) {
|
||||
let r = sqlx::query!("DELETE FROM mcaptcha_users WHERE name = ($1)", name,)
|
||||
.execute(&data.db)
|
||||
.await;
|
||||
let x = data.dblib.delete_user(name).await;
|
||||
println!();
|
||||
println!();
|
||||
println!();
|
||||
println!("Deleting user: {:?}", &r);
|
||||
println!("Deleting user: {:?}", &x);
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
|
|
Loading…
Add table
Reference in a new issue