Fix: Pass path to ui builder function when creating mock app
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
c301b4b0ab
commit
ae7a633ab3
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,7 @@ impl ImagApplication for ImagTag {
|
||||||
::std::process::exit(1);
|
::std::process::exit(1);
|
||||||
})
|
})
|
||||||
.into_iter();
|
.into_iter();
|
||||||
|
|
||||||
if let Some(name) = rt.cli().subcommand_name() {
|
if let Some(name) = rt.cli().subcommand_name() {
|
||||||
match name {
|
match name {
|
||||||
"list" => for id in ids {
|
"list" => for id in ids {
|
||||||
|
@ -282,6 +282,7 @@ mod tests {
|
||||||
modulename mock;
|
modulename mock;
|
||||||
version env!("CARGO_PKG_VERSION");
|
version env!("CARGO_PKG_VERSION");
|
||||||
with help "imag-tag mocking app";
|
with help "imag-tag mocking app";
|
||||||
|
with ui builder function crate::ui::build_ui;
|
||||||
}
|
}
|
||||||
use self::mock::generate_test_runtime;
|
use self::mock::generate_test_runtime;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue