Skip to content

Commit

Permalink
Issue #74: Testing test_datasets.py, fix test file path.
Browse files Browse the repository at this point in the history
  • Loading branch information
bongjinkoo committed May 17, 2022
1 parent 3aab671 commit 603fd4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ioSPI/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ def upload(self, local_path: str, remote_path: str):
print(f"Uploading {local_path} to {full_remote_path}...")
# os.system(f"osf upload {local_path} {full_remote_path}")
f = subprocess.run(
"$CONDA/bin/" + f"osf upload {local_path} "
f"{full_remote_path}", # Test./home/runner/work/ioSPI/ioSPI/
"$CONDA/bin/" + f"osf upload {local_path} " f"{full_remote_path}",
shell=True,
text=True,
check=True,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def setup():
@pytest.fixture(autouse=True, scope="session")
def set_file_path():
"""Create a temporary text file for upload."""
file_path = "./tests/data/"
file_path = "./home/runner/work/ioSPI/ioSPI/tests/data/"
file_name = "test_upload.txt"
return file_path, file_name

Expand Down

0 comments on commit 603fd4e

Please sign in to comment.