forked from mirrors/kingfisher
Set GIT_TERMINAL_PROMPT=0 when cloning git repos
This commit is contained in:
parent
cadc2e44c5
commit
23c0d23722
1 changed files with 0 additions and 10 deletions
|
|
@ -525,16 +525,6 @@ mod tests {
|
|||
assert!((now - tmpl_val).abs() < 5, "timestamp differs by >5 s");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rfc3986_ts_filter_format() {
|
||||
let ts = render(r#"{{ "" | rfc3986_ts }}"#);
|
||||
|
||||
// RFC-3986 form: 2025-07-09T03%3A36%3A40Z
|
||||
let re = Regex::new(r"^\d{4}-\d{2}-\d{2}T\d{2}%3A\d{2}%3A\d{2}Z$").unwrap();
|
||||
assert!(re.is_match(&ts), "timestamp not RFC3986-encoded: {ts}");
|
||||
assert!(!ts.contains('.'), "sub-seconds should be removed: {ts}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn iso_timestamp_filter_parses() {
|
||||
let out = render(r#"{{ "" | iso_timestamp }}"#);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue