Skip to content

Commit

Permalink
Merge pull request #62 from Harold-Solbrig/issue-60-reqtxt
Browse files Browse the repository at this point in the history
regenerated requirements.txt, relax tests that assume no namespace pollution
  • Loading branch information
cmungall authored Aug 7, 2023
2 parents 0db9f7a + 957d43a commit be4b339
Show file tree
Hide file tree
Showing 16 changed files with 5,676 additions and 5,672 deletions.
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

0 comments on commit be4b339

Please sign in to comment.