Skip to content

Commit

Permalink
fixed envvars used in stage-upload test
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Mar 15, 2024
1 parent 094d5ea commit 839e364
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions xnat_ingest/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def test_stage_and_upload(
for assoc_fspath in assoc_fspaths:
os.link(
assoc_fspath,
associated_files_dir / f"{assoc_fspath.stem}-{i}{assoc_fspath.suffix}",
associated_files_dir
/ f"{assoc_fspath.stem}-{i}{assoc_fspath.suffix}",
)

# Create data store
Expand Down Expand Up @@ -200,7 +201,7 @@ def test_stage_and_upload(
# "info",
"--raise-errors",
"--delete",
]
],
)

assert result.exit_code == 0, show_cli_trace(result)
Expand All @@ -217,9 +218,9 @@ def test_stage_and_upload(
"--raise-errors",
],
env={
"XNAT_INGEST_HOST": xnat_server,
"XNAT_INGEST_USER": "admin",
"XNAT_INGEST_PASS": "admin",
"XNAT_INGEST_STAGE_HOST": xnat_server,
"XNAT_INGEST_STAGE_USER": "admin",
"XNAT_INGEST_STAGE_PASS": "admin",
},
)

Expand Down

0 comments on commit 839e364

Please sign in to comment.