Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Dec 13, 2024
1 parent 4a5d9bf commit dfc7eea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,11 @@ mod tests {

#[test]
fn test_cli_with_check_arguments() {
let cli = Cli::try_parse_from(vec!["conda-deny", "check", "--include-safe"]).unwrap();
let cli = Cli::try_parse_from(vec!["conda-deny", "check", "--osi"]).unwrap();
match cli.command {
CondaDenyCliConfig::Check { .. } => {}
CondaDenyCliConfig::Check { osi, .. } => {
assert_eq!(osi, Some(true));
}
_ => panic!("Expected check subcommand with --include-safe"),
}
}
Expand Down

0 comments on commit dfc7eea

Please sign in to comment.