diff options
author | Nicholas Car <nicholas.car@surroundaustralia.com> | 2021-04-25 11:45:59 +1000 |
---|---|---|
committer | Nicholas Car <nicholas.car@surroundaustralia.com> | 2021-04-25 11:45:59 +1000 |
commit | 4164d8319a0685b461b00ac282657b63684fbc64 (patch) | |
tree | 38ba9da8a77695cccdec59052c313382c0ae65ae | |
parent | 57e180b4ca1f074c3ab08ff6ff8ef09ed143de58 (diff) | |
download | rdflib-docco_clean.tar.gz |
fix tests using XML data since Turtle now defaultdocco_clean
-rw-r--r-- | test/test_empty_xml_base.py | 4 | ||||
-rw-r--r-- | test/test_issue160.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/test_empty_xml_base.py b/test/test_empty_xml_base.py index 2f3364b8..7410320b 100644 --- a/test/test_empty_xml_base.py +++ b/test/test_empty_xml_base.py @@ -43,7 +43,7 @@ baseUri2 = URIRef("http://example.com/foo/bar") class TestEmptyBase(unittest.TestCase): def setUp(self): self.graph = ConjunctiveGraph() - self.graph.parse(StringIO(test_data), publicID=baseUri) + self.graph.parse(StringIO(test_data), publicID=baseUri, format="xml") def test_base_ref(self): self.assertTrue( @@ -58,7 +58,7 @@ class TestEmptyBase(unittest.TestCase): class TestRelativeBase(unittest.TestCase): def setUp(self): self.graph = ConjunctiveGraph() - self.graph.parse(StringIO(test_data2), publicID=baseUri2) + self.graph.parse(StringIO(test_data2), publicID=baseUri2, format="xml") def test_base_ref(self): self.assertTrue( diff --git a/test/test_issue160.py b/test/test_issue160.py index b3c7b422..67f56d83 100644 --- a/test/test_issue160.py +++ b/test/test_issue160.py @@ -52,9 +52,9 @@ class CollectionTest(TestCase): # Fails: y a foo:Wrapper, foo:wraps x; x a rdf:List, a foo:Other ; target1 = ConjunctiveGraph() - target1.parse(data=target1xml) + target1.parse(data=target1xml, format="xml") target2 = ConjunctiveGraph() - target2.parse(data=target2xml) + target2.parse(data=target2xml, format="xml") g = ConjunctiveGraph() bits = [ex["a"], ex["b"], ex["c"]] |