diff --git a/src/rdflib_endpoint/sparql_router.py b/src/rdflib_endpoint/sparql_router.py index bdd7326..d3db450 100644 --- a/src/rdflib_endpoint/sparql_router.py +++ b/src/rdflib_endpoint/sparql_router.py @@ -19,7 +19,6 @@ "SparqlRouter", ] - EXAMPLE_SPARQL = """\ PREFIX myfunctions: diff --git a/tests/test_example_app.py b/tests/test_example_app.py index 1099165..4c397fc 100644 --- a/tests/test_example_app.py +++ b/tests/test_example_app.py @@ -21,7 +21,7 @@ def test_service_description(): def test_custom_concat(): - response = endpoint.get("/?query=" + custom_concat_query, headers={"accept": "application/json"}) + response = endpoint.get("/", params={"query": custom_concat_query}, headers={"accept": "application/json"}) # print(response.json()) assert response.status_code == 200 assert response.json()["results"]["bindings"][0]["concat"]["value"] == "Firstlast" diff --git a/tests/test_rdflib_endpoint.py b/tests/test_rdflib_endpoint.py index 2a5989f..eea39f3 100644 --- a/tests/test_rdflib_endpoint.py +++ b/tests/test_rdflib_endpoint.py @@ -28,7 +28,7 @@ def test_service_description(): def test_custom_concat_json(): - response = endpoint.get("/?query=" + concat_select, headers={"accept": "application/json"}) + response = endpoint.get("/", params={"query": concat_select}, headers={"accept": "application/json"}) # print(response.json()) assert response.status_code == 200 assert response.json()["results"]["bindings"][0]["concat"]["value"] == "Firstlast"