Skip to content

Commit

Permalink
fix httpx test calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jun 23, 2023
1 parent fb15964 commit e340581
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/rdflib_endpoint/sparql_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"SparqlRouter",
]


EXAMPLE_SPARQL = """\
PREFIX myfunctions: <https://w3id.org/um/sparql-functions/>
Expand Down
2 changes: 1 addition & 1 deletion tests/test_example_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rdflib_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e340581

Please sign in to comment.