Skip to content

Commit

Permalink
Issue #74: Testing test_datasets.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
bongjinkoo committed May 17, 2022
1 parent 5486fb2 commit 73c2852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ def test_constructor_invalid_because_no_token():
def test_upload_valid(setup, set_file_path):
"""Test the upload method."""
file_list = subprocess.run(
f"osf ls", shell=True, text=True, capture_output=True
"osf ls", shell=True, text=True, capture_output=True
).stdout
print(io.StringIO(file_list).readlines())

setup.upload(set_file_path[0] + set_file_path[1], set_file_path[1])
file_exists = False
# file_list = os.popen("osf ls")
file_list = subprocess.run(
f"osf ls", shell=False, text=True, capture_output=True
"osf lss", shell=True, text=True, capture_output=True
).stdout
file_list = io.StringIO(file_list)
line = file_list.readline()
Expand Down Expand Up @@ -117,7 +117,7 @@ def test_remove_valid(setup, set_file_path):
file_exists = False
# file_list = os.popen("osf ls")
file_list = subprocess.run(
f"osf ls", shell=True, text=True, capture_output=True
"osf ls", shell=True, text=True, capture_output=True
).stdout
file_list = io.StringIO(file_list)
line = file_list.readline()
Expand Down

0 comments on commit 73c2852

Please sign in to comment.