acdh-oeaw / rdfproxy

GNU General Public License v3.0
2 stars 0 forks source link

tests: Mock SPARQLWrapper #72

Open lu-pl opened 3 months ago

lu-pl commented 3 months ago

Tests targeting an actual remote triplestore are a source of flaky and/or slow tests.

Mocking SPARQLWrapper would be a solution for that and also potentially generally useful.

lu-pl commented 2 months ago

A basic draft of a mock context for targeting a local rdflib.Graph instance with SPARQLWrapper can be found here.

lu-pl commented 4 weeks ago

A new version of the SPARQLWrapperLocalTarget mocking functionality is available (latest).

This is not fully generic yet, but should suffice for mocking SPARQLWrapper SELECT queries against local rdflib.Graph instances.

This issue should also entail the implementation of basic end-to-end tests.