mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 02:55:39 +00:00
chore: migrate tests to also run with mariadb
This commit is contained in:
@@ -47,12 +47,22 @@ mod tests {
|
||||
use crate::*;
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn protected_pages_templates_work() {
|
||||
async fn protected_pages_templates_work_pg_test() {
|
||||
let data = pg::get_data().await;
|
||||
protected_pages_templates_work(data).await;
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn protected_pages_templates_work_maria_test() {
|
||||
let data = maria::get_data().await;
|
||||
protected_pages_templates_work(data).await;
|
||||
}
|
||||
|
||||
async fn protected_pages_templates_work(data: ArcData) {
|
||||
const NAME: &str = "templateuser";
|
||||
const PASSWORD: &str = "longpassword";
|
||||
const EMAIL: &str = "templateuser@a.com";
|
||||
|
||||
let data = get_data().await;
|
||||
let data = &data;
|
||||
delete_user(data, NAME).await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user