fix tests

This commit is contained in:
manuel 2023-06-25 12:10:35 +02:00
parent c65c3ee794
commit 1ce89ed65c
4 changed files with 8 additions and 3 deletions

View File

@ -150,7 +150,7 @@ fn get_html_input_type<S: BuildHasher>(
}
fn get_tera() -> Tera {
let mut tera = Tera::new(concat!(env!("CARGO_MANIFEST_DIR"), "*")).unwrap();
let mut tera = Tera::new(concat!(env!("CARGO_MANIFEST_DIR"), "/src/templates/*.html")).unwrap();
tera.register_filter("get_html_input_type", get_html_input_type);
tera.register_filter("get_html_input_class", get_html_input_class);
tera.register_filter("get_icon", get_icon);

View File

@ -51,4 +51,6 @@ impl ActixAdminModelValidationTrait<ActiveModel> for Entity {
}
errors
}
}
}
impl ActixAdminModelFilterTrait<Entity> for Entity {}

View File

@ -97,6 +97,7 @@ pub fn create_actix_admin_builder() -> ActixAdminBuilder {
login_link: None,
logout_link: None,
file_upload_directory: "./file_uploads",
navbar_title: "test"
};
let mut admin_builder = ActixAdminBuilder::new(configuration);

View File

@ -67,4 +67,6 @@ impl FromStr for Tea {
}
}
impl ActixAdminModelValidationTrait<ActiveModel> for Entity {}
impl ActixAdminModelValidationTrait<ActiveModel> for Entity {}
impl ActixAdminModelFilterTrait<Entity> for Entity {}