diff --git a/ioSPI/datasets.py b/ioSPI/datasets.py index 199b812..a61d4af 100644 --- a/ioSPI/datasets.py +++ b/ioSPI/datasets.py @@ -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, diff --git a/tests/test_datasets.py b/tests/test_datasets.py index e146154..8f90f9f 100644 --- a/tests/test_datasets.py +++ b/tests/test_datasets.py @@ -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