mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 19:15:39 +00:00
chore: migrate tests to also run with mariadb
This commit is contained in:
@@ -143,11 +143,21 @@ mod test {
|
||||
use crate::*;
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn edit_sitekey_work() {
|
||||
async fn edit_sitekey_work_pg_test() {
|
||||
let data = pg::get_data().await;
|
||||
edit_sitekey_work(data).await;
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn edit_sitekey_work_maria_test() {
|
||||
let data = maria::get_data().await;
|
||||
edit_sitekey_work(data).await;
|
||||
}
|
||||
|
||||
async fn edit_sitekey_work(data: ArcData) {
|
||||
const NAME: &str = "editsitekeyuser";
|
||||
const PASSWORD: &str = "longpassworddomain";
|
||||
const EMAIL: &str = "editsitekeyuser@a.com";
|
||||
let data = get_data().await;
|
||||
let data = &data;
|
||||
delete_user(data, NAME).await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user