aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/simple.rs
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/simple.rs')
-rw-r--r--testing/tests/simple.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index d4d2964..2bf8e7a 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -289,3 +289,15 @@ struct Empty;
fn test_empty() {
assert_eq!(Empty.render().unwrap(), "foo");
}
+
+mod without_import_on_derive {
+ #[derive(askama::Template)]
+ #[template(source = "foo", ext = "txt")]
+ struct WithoutImport;
+
+ #[test]
+ fn test_without_import() {
+ use askama::Template;
+ assert_eq!(WithoutImport.render().unwrap(), "foo");
+ }
+}