aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/fixtures/rdf.py4
1 files changed, 3 insertions, 1 deletions
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"],