Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Mock SPARQLWrapper #72

Open
lu-pl opened this issue Aug 22, 2024 · 2 comments
Open

tests: Mock SPARQLWrapper #72

lu-pl opened this issue Aug 22, 2024 · 2 comments
Assignees
Labels

Comments

@lu-pl
Copy link
Contributor

lu-pl commented Aug 22, 2024

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 lu-pl self-assigned this Aug 22, 2024
@lu-pl lu-pl changed the title tests: Mock requests tests: Mock urllib Sep 22, 2024
@lu-pl
Copy link
Contributor Author

lu-pl commented Sep 22, 2024

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

@lu-pl lu-pl changed the title tests: Mock urllib tests: Mock SPARQLWrapper Sep 22, 2024
@lu-pl lu-pl added the tests label Oct 22, 2024
@lu-pl
Copy link
Contributor Author

lu-pl commented Oct 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant