From e4634e8cdc1ffdc518993d2aa8534690957ab565 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 20 Sep 2024 15:35:18 +0300 Subject: Load GN3_SECRETS after loading GN3_CONF settings. Signed-off-by: Munyoki Kilyungi --- tests/fixtures/rdf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/fixtures/rdf.py b/tests/fixtures/rdf.py index 93a7c23..776a5d4 100644 --- a/tests/fixtures/rdf.py +++ b/tests/fixtures/rdf.py @@ -9,8 +9,10 @@ import pytest def get_sparql_auth_conf() -> dict: """Fetch SPARQL auth configuration for the GN3_SECRETS file.""" sparql_conf = config.Config("") - sparql_conf.from_envvar("GN3_SECRETS") + # When loading from the environment, GN3_CONF precedes + # GN3_SECRETS. Don't change this order. sparql_conf.from_envvar("GN3_CONF") + sparql_conf.from_envvar("GN3_SECRETS") return { "sparql_user": sparql_conf["SPARQL_USER"], "sparql_auth_uri": sparql_conf["SPARQL_AUTH_URI"], -- cgit v1.2.3