mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 13:30:59 +00:00
derive: update expected output for newer trybuild versions
This commit is contained in:
parent
2cf65d18cc
commit
74bf996ff3
@ -407,7 +407,14 @@ mod tests {
|
||||
}
|
||||
|
||||
fn assert_eq_rooted(actual: &Path, expected: &str) {
|
||||
let mut root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
|
||||
let mut root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap())
|
||||
.canonicalize()
|
||||
.unwrap();
|
||||
if root.ends_with("rinja_derive_standalone") {
|
||||
root.pop();
|
||||
root.push("rinja_derive");
|
||||
}
|
||||
|
||||
root.push("templates");
|
||||
let mut inner = PathBuf::new();
|
||||
inner.push(expected);
|
||||
|
@ -25,7 +25,7 @@ rinja = { path = "../rinja", version = "0.3.5", features = ["code-in-doc", "serd
|
||||
|
||||
criterion = "0.5"
|
||||
phf = { version = "0.11", features = ["macros" ] }
|
||||
trybuild = "1.0.76"
|
||||
trybuild = "1.0.100"
|
||||
|
||||
[[bench]]
|
||||
name = "all"
|
||||
|
@ -1,6 +1,6 @@
|
||||
error: cyclic dependency in graph [
|
||||
"\"$WORKSPACE/target/tests/trybuild/rinja_testing/templates/cycle2.html/" --> \"$WORKSPACE/target/tests/trybuild/rinja_testing/templates/cycle1.html/"",
|
||||
"\"$WORKSPACE/target/tests/trybuild/rinja_testing/templates/cycle1.html/" --> \"$WORKSPACE/target/tests/trybuild/rinja_testing/templates/cycle1.html/"",
|
||||
"\"$DIR/templates/cycle2.html/" --> \"$DIR/templates/cycle1.html/"",
|
||||
"\"$DIR/templates/cycle1.html/" --> \"$DIR/templates/cycle1.html/"",
|
||||
]
|
||||
--> tests/ui/cycle.rs:4:19
|
||||
|
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: cyclic dependency in graph [
|
||||
"\"$WORKSPACE/target/tests/trybuild/rinja_testing/templates/cycle1.html/" --> \"$WORKSPACE/target/tests/trybuild/rinja_testing/templates/cycle1.html/"",
|
||||
"\"$DIR/templates/cycle1.html/" --> \"$DIR/templates/cycle1.html/"",
|
||||
]
|
||||
--> tests/ui/cycle2.rs:4:19
|
||||
|
|
||||
|
@ -1,4 +1,4 @@
|
||||
error: unable to open template file '$WORKSPACE/target/tests/trybuild/rinja_testing/templates/a_file_that_is_actually_a_folder.html': Is a directory (os error 21)
|
||||
error: unable to open template file '$DIR/templates/a_file_that_is_actually_a_folder.html': Is a directory (os error 21)
|
||||
--> YouCannotIncludeFolders.txt:1:2
|
||||
" include \"a_file_that_is_actually_a_folder.html\" %}"
|
||||
--> tests/ui/include-a-folder.rs:4:34
|
||||
|
Loading…
x
Reference in New Issue
Block a user