diff --git a/tests/unit/test_sad_path_get_bindings_from_query_result.py b/tests/unit/test_sad_path_get_bindings_from_query_result.py index 2bc655c..fc61756 100644 --- a/tests/unit/test_sad_path_get_bindings_from_query_result.py +++ b/tests/unit/test_sad_path_get_bindings_from_query_result.py @@ -4,11 +4,14 @@ import pytest +from SPARQLWrapper.Wrapper import QueryResult from rdfproxy.utils.sparql_utils import get_bindings_from_query_result def test_basic_sad_path_get_bindings_from_query_result(): with mock.patch("SPARQLWrapper.QueryResult") as mock_query_result: + mock_query_result.__class__ = QueryResult + mock_query_result.return_value.requestedFormat = "xml" exception_message = ( "Only QueryResult objects with JSON format are currently supported."