Skip to content

Commit

Permalink
Issue #74: Add check flag for subprocess in test_datasets.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
bongjinkoo committed May 17, 2022
1 parent d0a5342 commit 1ea2739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_upload_valid(setup, set_file_path):
line = file_list.readline()

assert file_exists
subprocess.run(f"rm {set_file_path[0]}{set_file_path[1]}", shell=True)
subprocess.run(f"rm {set_file_path[0]}{set_file_path[1]}", shell=True, check=True)


def test_upload_invalid_because_no_local_path(setup):
Expand All @@ -111,7 +111,7 @@ def test_download_valid(setup, set_file_path):
"""Test the download method."""
setup.download(set_file_path[1], set_file_path[0] + set_file_path[1])
assert os.path.exists(set_file_path[0] + set_file_path[1])
subprocess.run(f"rm {set_file_path[0]}{set_file_path[1]}", shell=True)
subprocess.run(f"rm {set_file_path[0]}{set_file_path[1]}", shell=True, check=True)


def test_download_invalid_because_no_remote_path(setup):
Expand Down

0 comments on commit 1ea2739

Please sign in to comment.