Skip to content

Commit

Permalink
tests: adjust template lookup registration test to account for more…
Browse files Browse the repository at this point in the history
… verbose error msg
  • Loading branch information
jqnatividad committed Nov 27, 2024
1 parent ef7d718 commit 06ee58b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,10 +869,11 @@ fn template_lookup_register_errors() {
))
.arg("data.csv");

let got: String = wrk.stdout(&mut cmd);
assert!(got.starts_with(
"RENDERING ERROR (1): invalid operation: failed to load lookup table: failed to open \
nonexistent.csv:"
wrk.assert_err(&mut cmd);

let got: String = wrk.output_stderr(&mut cmd);
assert!(got.contains(
r#"invalid operation: failed to load lookup table "test": failed to open nonexistent.csv:"#
));
}
#[test]
Expand Down

0 comments on commit 06ee58b

Please sign in to comment.