Skip to content

Commit

Permalink
Add to test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
delucchi-cmu committed Aug 5, 2024
1 parent 965749a commit 46e1221
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/hipscat_import/catalog/test_argument_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ def test_invalid_paths(blank_data_dir, tmp_path):
output_path=tmp_path,
)

# Too many paths!
with pytest.raises(ValueError, match="exactly one of"):
ImportArguments(
output_artifact_name="catalog",
input_path=blank_data_dir,
input_file_list=[blank_data_dir],
file_reader="csv",
output_path=tmp_path,
progress_bar=False,
)


def test_missing_paths(tmp_path):
## Input path has no files
Expand Down

0 comments on commit 46e1221

Please sign in to comment.