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

Replace use of DBPedia with the new SimpleHTTPMock #1345

Merged
merged 1 commit into from
Jul 2, 2021

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Jun 26, 2021

Replace use of DBPedia with the new SimpleHTTPMock

This should eliminate the spurious DBPedia related errors that plagued
the CI pipeline.

I am deleting test/test_core_sparqlstore.py as it does not do anything
meaningful as far as I can tell and certainly nothing different from
what is being done in test/test_sparqlstore.py.

Also adds ServedSimpleHTTPMock to testutils.py which inherits from
SimpleHTTPMock and adds a http server to it which makes it a bit less
fiddly to use in tests.

Fixes #1344

Proposed Changes

  • Rewrite tests in test/test_core_sparqlstore.py that use dbpedia to use SimpleHTTPMock
  • delete test/test_core_sparqlstore.py as it seems to be doing nothing.
  • Adds ServedSimpleHTTPMock to testutils.py

@aucampia aucampia marked this pull request as draft June 26, 2021 19:31
@aucampia
Copy link
Member Author

Keeping this as draft until #1342 is merged

@nicholascar
Copy link
Member

@aucampia can you move this out of Draft so we can get these changes in? Love to see progress on those fake address errors made!

This should eliminate the spurious DBPedia related errors that plagued
the CI pipeline.

I am deleting `test/test_core_sparqlstore.py` as it does not do anything
meaningful as far as I can tell and certainly nothing different from
what is being done in `test/test_sparqlstore.py`.

Also adds ServedSimpleHTTPMock to testutils.py which inherits from
SimpleHTTPMock and adds a http server to it which makes it a bit less
fiddly to use in tests.
@aucampia aucampia marked this pull request as ready for review June 29, 2021 23:58
@aucampia
Copy link
Member Author

@aucampia can you move this out of Draft so we can get these changes in? Love to see progress on those fake address errors made!

Done

@nicholascar nicholascar merged commit 7cf5c38 into RDFLib:master Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SPARQLStoreDBPediaTestCase in test_sparqlstore.py causes many spurious pipeline failures
2 participants