aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-09-20 15:35:18 +0300
committerBonfaceKilz2024-09-23 12:32:51 +0300
commite4634e8cdc1ffdc518993d2aa8534690957ab565 (patch)
tree7c3dba712cdd264f85c5c14274f81f8586724a7a
parentf3ccb0e5c09e5e7cbfebe9bb75f17e03ff205265 (diff)
downloadgenenetwork3-e4634e8cdc1ffdc518993d2aa8534690957ab565.tar.gz
Load GN3_SECRETS after loading GN3_CONF settings.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-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"],