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

regenerated requirements.txt, relax tests that assume no namespace pollution #62

Merged
merged 5 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ verify_ssl = true
requests = "*"

[packages]
rdflib = ">=6.2.0, <8"
rdflib = ">=6.2.0, <7"
rdflib-shim = "*"
pyjsg = ">=0.11.6"
rfc3987 = "*"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ bcp47
jsonasobj
pyjsg>=0.11.6
rdflib-shim
rdflib==6.2.0
rdflib>=6.2.0,<7
rfc3987
4 changes: 2 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@

# rdflib 6.1.1 has a LONG list of pre-assigned prefixes. This breaks some of our tests and the rdflib
# community promises to fix it (some day...). For now, we won't run tests on this version
RDFLIB_PREFIXES_ARE_BROKEN = rdflib.__version__ == "6.1.1"
PREFIXES_BROKEN_MESSAGE = "rdflib 6.1.1 emits a LOT of prefixes. Test skipped!"
RDFLIB_PREFIXES_ARE_BROKEN = rdflib.__version__ >= "6.1.1"
PREFIXES_BROKEN_MESSAGE = "rdflib 6.1.1+ emits a LOT of prefixes. Test skipped!"
334 changes: 167 additions & 167 deletions tests/data/pizza_out.ttl

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/test_base/test_assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_differentindividuals_rdf(self):
<http://example.org/a#Alex> a owl:NamedIndividual ;
owl:differentFrom <http://example.org/a#Bob> .

<http://example.org/a#Bob> a owl:NamedIndividual .""", g.serialize(format="turtle").decode().strip())
<http://example.org/a#Bob> a owl:NamedIndividual .""", g.serialize(format="turtle").strip())

def test_classassertion(self):
self.assertEqual('ClassAssertion( a:GriffinFamilyMember a:Peter_Griffin )',
Expand Down Expand Up @@ -79,7 +79,7 @@ def test_objectpropertyassertion_rdf(self):

ns1:hasBrother a <http://www.w3.org/2002/07/owl#ObjectProperty> .

ns1:Stewie a <http://www.w3.org/2002/07/owl#NamedIndividual> .""", g.serialize(format='turtle').decode())
ns1:Stewie a <http://www.w3.org/2002/07/owl#NamedIndividual> .""", g.serialize(format='turtle'))
if diff:
print(diff)
self.fail()
Expand Down
Loading
Loading