From f20a1a9f9f5c052f756b917fdce052efc8203f87 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 27 Sep 2024 14:01:04 -0500 Subject: Use existing fixture to retrieve settings. --- tests/unit/db/rdf/test_wiki.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/unit/db/rdf') diff --git a/tests/unit/db/rdf/test_wiki.py b/tests/unit/db/rdf/test_wiki.py index 5f36034..c737f29 100644 --- a/tests/unit/db/rdf/test_wiki.py +++ b/tests/unit/db/rdf/test_wiki.py @@ -29,8 +29,6 @@ from gn3.db.rdf.wiki import ( update_wiki_comment, ) - -SPARQL_CONF = get_sparql_auth_conf() GRAPH = "" @@ -187,8 +185,9 @@ def test_sanitize_result(result, expected): @pytest.mark.rdf -def test_get_wiki_entries_by_symbol(rdf_setup): # pylint: disable=W0613,W0621 +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) result = get_wiki_entries_by_symbol( symbol="ckb", sparql_uri=SPARQL_CONF["sparql_endpoint"], @@ -261,8 +260,9 @@ and C1QL3 (CTRP13).", @pytest.mark.rdf -def test_get_comment_history(rdf_setup): # pylint: disable=W0613,W0621 +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) result = get_comment_history( comment_id=1158, sparql_uri=SPARQL_CONF["sparql_endpoint"], @@ -353,8 +353,9 @@ Possible 3' UTR variants.", @pytest.mark.rdf -def test_update_wiki_comment(rdf_setup): # pylint: disable=W0613,W0621 +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) update_wiki_comment( insert_dict={ "Id": 230, -- cgit v1.2.3