Skip to content

Commit

Permalink
Add a test for the validate CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed May 7, 2024
1 parent 80cdbaf commit 87f2897
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,12 @@ def test_cli_dump(tmp_path: pathlib.Path):

assert result.exit_code == 0
assert tmp_file.exists()


def test_cli_validate(files_path: pathlib.Path, too_mock: polars.DataFrame):
too_mock[150000:200000].clone().write_parquet(files_path / "too.parquet")

runner = CliRunner()
result = runner.invoke(too_cli, ["validate", str(files_path / "too.parquet")])

assert result.exit_code == 0

0 comments on commit 87f2897

Please sign in to comment.