From 763abc0a86f128158741e7567b26482e65158a21 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 1 Oct 2024 08:37:24 -0400 Subject: [PATCH] fix artifactory_repos for pytest 8 --- romancal/regtest/conftest.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/romancal/regtest/conftest.py b/romancal/regtest/conftest.py index 9f9586bc8..618fd35ca 100644 --- a/romancal/regtest/conftest.py +++ b/romancal/regtest/conftest.py @@ -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