aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/db/rdf
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-28 16:55:54 -0500
committerFrederick Muriuki Muriithi2024-09-28 16:55:54 -0500
commitc2c89bdc69913b86495b0fd568b554c357ec7ccf (patch)
treefa742fe24ff7cf69f24aba5ed527727201fc0330 /tests/unit/db/rdf
parentb57d43ff863fd1e9a80d1579bc66ce8a7174480e (diff)
downloadgenenetwork3-c2c89bdc69913b86495b0fd568b554c357ec7ccf.tar.gz
Lint: fix some linting errors.
Diffstat (limited to 'tests/unit/db/rdf')
-rw-r--r--tests/unit/db/rdf/test_wiki.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/unit/db/rdf/test_wiki.py b/tests/unit/db/rdf/test_wiki.py
index c737f29..7627dbf 100644
--- a/tests/unit/db/rdf/test_wiki.py
+++ b/tests/unit/db/rdf/test_wiki.py
@@ -187,10 +187,10 @@ def test_sanitize_result(result, expected):
@pytest.mark.rdf
def test_get_wiki_entries_by_symbol(fxtr_app_config, rdf_setup): # pylint: disable=W0613,W0621
"""Test that wiki entries are fetched correctly by symbol"""
- SPARQL_CONF = get_sparql_auth_conf(fxtr_app_config)
+ sparql_conf = get_sparql_auth_conf(fxtr_app_config)
result = get_wiki_entries_by_symbol(
symbol="ckb",
- sparql_uri=SPARQL_CONF["sparql_endpoint"],
+ sparql_uri=sparql_conf["sparql_endpoint"],
graph=GRAPH,
)
expected = {
@@ -262,10 +262,10 @@ and C1QL3 (CTRP13).",
@pytest.mark.rdf
def test_get_comment_history(fxtr_app_config, rdf_setup): # pylint: disable=W0613,W0621
"""Test fetching a comment's history from RDF"""
- SPARQL_CONF = get_sparql_auth_conf(fxtr_app_config)
+ sparql_conf = get_sparql_auth_conf(fxtr_app_config)
result = get_comment_history(
comment_id=1158,
- sparql_uri=SPARQL_CONF["sparql_endpoint"],
+ sparql_uri=sparql_conf["sparql_endpoint"],
graph=GRAPH,
)
expected = {
@@ -355,7 +355,7 @@ Possible 3' UTR variants.",
@pytest.mark.rdf
def test_update_wiki_comment(fxtr_app_config, rdf_setup): # pylint: disable=W0613,W0621
"""Test that a comment is updated correctly"""
- SPARQL_CONF = get_sparql_auth_conf(fxtr_app_config)
+ sparql_conf = get_sparql_auth_conf(fxtr_app_config)
update_wiki_comment(
insert_dict={
"Id": 230,
@@ -371,14 +371,14 @@ def test_update_wiki_comment(fxtr_app_config, rdf_setup): # pylint: disable=W06
"species": "mouse",
"categories": [],
},
- sparql_user=SPARQL_CONF["sparql_user"],
- sparql_password=SPARQL_CONF["sparql_password"],
- sparql_auth_uri=SPARQL_CONF["sparql_auth_uri"],
+ sparql_user=sparql_conf["sparql_user"],
+ sparql_password=sparql_conf["sparql_password"],
+ sparql_auth_uri=sparql_conf["sparql_auth_uri"],
graph=GRAPH,
)
updated_history = get_comment_history(
comment_id=230,
- sparql_uri=SPARQL_CONF["sparql_endpoint"],
+ sparql_uri=sparql_conf["sparql_endpoint"],
graph=GRAPH,
)["data"]
assert len(updated_history) == 4