Skip to content

Commit

Permalink
fix artifactory_repos for pytest 8 (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Oct 1, 2024
2 parents 3ee371d + 763abc0 commit 8f72709
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions romancal/regtest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
@pytest.fixture(scope="session")
def artifactory_repos(pytestconfig):
"""Provides Artifactory inputs_root and results_root"""
try:
inputs_root = pytestconfig.getini("inputs_root")[0]
results_root = pytestconfig.getini("results_root")[0]
except IndexError:
inputs_root = pytestconfig.getini("inputs_root")
if not inputs_root:
inputs_root = "roman-pipeline"
else:
inputs_root = inputs_root[0]

results_root = pytestconfig.getini("results_root")
if not results_root:
results_root = "roman-pipeline-results"
else:
results_root = results_root[0]
return inputs_root, results_root


Expand Down

0 comments on commit 8f72709

Please sign in to comment.