Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
quambene committed May 2, 2024
1 parent f9a183e commit 88cdeee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn query(matches: &ArgMatches) -> Result<(), anyhow::Error> {
println!("Display query result: {}", df_query);
}

if matches.contains_id(arg::SAVE) {
if matches.get_flag(arg::SAVE) {
let save_dir = Path::new(arg::value(arg::SAVE_DIR, matches)?);

// If argument 'FILE_TYPE' is not present the default value 'csv' will be used
Expand Down
1 change: 1 addition & 0 deletions tests/cmd/test_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ fn test_query_save_png() {
cmd.args([
"query",
test_query,
"--display",
"--save",
"--save-dir",
save_dir,
Expand Down

0 comments on commit 88cdeee

Please sign in to comment.