-
Notifications
You must be signed in to change notification settings - Fork 555
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
Issue 2164 #2165
Issue 2164 #2165
Conversation
(should have run the _whole_ test suite before submitting)
This appears to be happening because of test_localsuite.py expects the data to be located in https://rdflib.github.io/rdflib-jsonld/local-testsuite/ instead of the local testing directory. @ashleysommer - I need some advice on where to put this test. Note: I was able to pass it locally by adding the re-assignment of TC_BASE below
|
`TC_BASE` was pointed at a URL (https://rdflib.github.io/rdflib/test/jsonld/local-testsuite/) that no longer seems to exist.
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
The reason this URI is used is so that there is a system neutral way of referring to tests and test content, the best reference I can find for this now is this
There really are no good or simple solutions to this. We had a similar problem for the SPARQL test suite and there I resorted to monkey patching: rdflib/test/utils/sparql_checker.py Lines 349 to 374 in 0e61a7f
In this case I think what you did is fine as there is no need for system neutral references in the local-suite JSON-LD tests. The change and tests looks fine to me otherwise. I will just do a double check tomorrow but I think it is good to merge. |
Okay I made a small change to instead use a file URI for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good to me @hsolbrig - I will merge by this weekend if there is no further feedback.
Summary of changes
Added a test case for issue #2164 and proposed a fix. The problem arose in line #415 in context.py, where the base URI passed to _prep_sources was overwritten in anticipation of processing inner nestings. Changed the assignment to
base
tonew_base