Fix cli tests

This commit is contained in:
Paul Hauner
2022-12-01 10:44:00 +11:00
parent 0ece17ed32
commit b5c463eaac

View File

@@ -7,7 +7,7 @@ use std::process::{Command, Stdio};
use std::str::FromStr; use std::str::FromStr;
use tempfile::{tempdir, TempDir}; use tempfile::{tempdir, TempDir};
use types::*; use types::*;
use validator_manager::validators::{ use validator_manager::{
create_validators::CreateConfig, create_validators::CreateConfig,
import_validators::ImportConfig, import_validators::ImportConfig,
move_validators::{MoveConfig, Validators}, move_validators::{MoveConfig, Validators},
@@ -84,23 +84,19 @@ impl<T: DeserializeOwned> CommandLineTest<T> {
impl CommandLineTest<CreateConfig> { impl CommandLineTest<CreateConfig> {
fn validators_create() -> Self { fn validators_create() -> Self {
Self::default() Self::default().flag("create", None)
.flag("validators", None)
.flag("create", None)
} }
} }
impl CommandLineTest<ImportConfig> { impl CommandLineTest<ImportConfig> {
fn validators_import() -> Self { fn validators_import() -> Self {
Self::default() Self::default().flag("import", None)
.flag("validators", None)
.flag("import", None)
} }
} }
impl CommandLineTest<MoveConfig> { impl CommandLineTest<MoveConfig> {
fn validators_move() -> Self { fn validators_move() -> Self {
Self::default().flag("validators", None).flag("move", None) Self::default().flag("move", None)
} }
} }