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 a0035dd commit 753b5fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,16 @@ 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
).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 lsu", shell=True, text=True, capture_output=True
f"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 753b5fa

Please sign in to comment.