mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-11 15:07:06 +00:00
sign: provide display in TestSigningBackend
We need to provide a value for the `display` attribute to assert against in upcoming tests, which verify signature templates.
This commit is contained in:
parent
638f123459
commit
87b38b3073
2 changed files with 3 additions and 3 deletions
|
@ -63,13 +63,13 @@ impl SigningBackend for TestSigningBackend {
|
|||
Ok(Verification {
|
||||
status: SigStatus::Good,
|
||||
key,
|
||||
display: None,
|
||||
display: Some("test-display".into()),
|
||||
})
|
||||
} else {
|
||||
Ok(Verification {
|
||||
status: SigStatus::Bad,
|
||||
key,
|
||||
display: None,
|
||||
display: Some("test-display".into()),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ fn good_verification() -> Option<Verification> {
|
|||
Some(Verification {
|
||||
status: SigStatus::Good,
|
||||
key: Some("impeccable".to_owned()),
|
||||
display: None,
|
||||
display: Some("test-display".into()),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue