Skip to content

Commit

Permalink
feat: add test for listing multiple parquet files
Browse files Browse the repository at this point in the history
  • Loading branch information
timvw committed Mar 26, 2024
1 parent 8382ca4 commit fe1d09b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,21 @@ mod tests {
));
Ok(())
}

#[tokio::test]

Check warning on line 113 in src/main.rs

View workflow job for this annotation

GitHub Actions / cargo fmt

Diff in /home/runner/work/qv/qv/src/main.rs
async fn run_with_local_parquet_files_in_folder() -> Result<()> {
let mut cmd = get_qv_cmd()?;
let cmd = cmd.arg(get_qv_testing_path(
"data/iceberg/db/COVID-19_NYT/data",
));
cmd.assert()
.success()
.stdout(predicate::str::contains(
r#"| date | county | state | fips | cases | deaths |"#,
))
.stdout(predicate::str::contains(
r#"| 2020-05-19 | Lawrence | Illinois | 17101 | 4 | 0 |"#,
));
Ok(())
}
}

0 comments on commit fe1d09b

Please sign in to comment.