chore: migrate tests to also run with mariadb

This commit is contained in:
realaravinth
2022-07-22 19:14:18 +05:30
parent 912b342e0e
commit 249b6461ee
24 changed files with 352 additions and 59 deletions

View File

@@ -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;