diff options
author | Frederick Muriuki Muriithi | 2024-09-27 14:01:04 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-27 14:01:04 -0500 |
commit | f20a1a9f9f5c052f756b917fdce052efc8203f87 (patch) | |
tree | 2f4df8ea47e5e30e985ea9f52c236244748bf957 /tests/unit/db/rdf | |
parent | 4940195460008192b6ca6269e1fb8c172ada4f17 (diff) | |
download | genenetwork3-f20a1a9f9f5c052f756b917fdce052efc8203f87.tar.gz |
Use existing fixture to retrieve settings.
Diffstat (limited to 'tests/unit/db/rdf')
-rw-r--r-- | tests/unit/db/rdf/test_wiki.py | 11 |
1 files changed, 6 insertions, 5 deletions
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 = "<http://cd-test.genenetwork.org>" @@ -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, |