Skip to content

Commit

Permalink
fix test_push_dataset_to_hub_out_dir_force_override_false
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadene committed Jun 12, 2024
1 parent 743c667 commit 26cbc8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_push_dataset_to_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,12 @@ def test_push_dataset_to_hub_invalid_repo_id():
def test_push_dataset_to_hub_out_dir_force_override_false(tmpdir):
tmpdir = Path(tmpdir)
out_dir = tmpdir / "out"
raw_dir = tmpdir / "raw"
# mkdir to skip download
raw_dir.mkdir(parents=True, exist_ok=True)
with pytest.raises(ValueError):
push_dataset_to_hub(
raw_dir=Path("raw"),
raw_dir=raw_dir,
raw_format="some_format",
repo_id="user/dataset",
local_dir=out_dir,
Expand Down

0 comments on commit 26cbc8d

Please sign in to comment.