Skip to content

Commit

Permalink
test: skip two SPARQL 1.0 tests that should not pass with SPARQL 1.1
Browse files Browse the repository at this point in the history
Skip the following tests that rely on SPARQL 1.0 grammar
and are incompatible with the SPARQL 1.1 grammar:

- <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-6>
- <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-7>

---------

Co-authored-by: WhiteGobo <[email protected]>
Co-authored-by: Iwan Aucamp <[email protected]>
  • Loading branch information
3 people committed Aug 16, 2023
1 parent f1e1316 commit 04f679a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions test/test_w3c_spec/test_sparql10_w3c.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@
(REMOTE_BASE_IRI, ensure_suffix(LOCAL_BASE_DIR.as_uri(), "/")),
)
MARK_DICT: MarksDictType = {
f"{REMOTE_BASE_IRI}basic/manifest#term-6": pytest.mark.xfail(
reason="query misinterpreted."
f"{REMOTE_BASE_IRI}basic/manifest#term-6": pytest.mark.skip(
reason="using Sparql 1.1 which is not backwards compatible. "
"'456.' will be interpreted differently in query and data."
),
f"{REMOTE_BASE_IRI}basic/manifest#term-7": pytest.mark.skip(
reason="using Sparql 1.1 which is not backwards compatible. "
"'456.' will be interpreted differently in query and data."
),
f"{REMOTE_BASE_IRI}basic/manifest#term-7": pytest.mark.xfail(reason="..."),
f"{REMOTE_BASE_IRI}expr-builtin/manifest#dawg-datatype-2": pytest.mark.xfail(
reason="additional row in output"
),
Expand Down
4 changes: 2 additions & 2 deletions test_reports/rdflib_w3c_sparql10-HEAD.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,15 @@
earl:assertedBy <https://github.com/RDFLib/rdflib> ;
earl:mode earl:automatic ;
earl:result [ a earl:TestResult ;
earl:outcome earl:failed ] ;
earl:outcome earl:untested ] ;
earl:subject <https://github.com/RDFLib/rdflib> ;
earl:test <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-6> .

[] a earl:Assertion ;
earl:assertedBy <https://github.com/RDFLib/rdflib> ;
earl:mode earl:automatic ;
earl:result [ a earl:TestResult ;
earl:outcome earl:failed ] ;
earl:outcome earl:untested ] ;
earl:subject <https://github.com/RDFLib/rdflib> ;
earl:test <http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-7> .

Expand Down

0 comments on commit 04f679a

Please sign in to comment.