Skip to content

Commit

Permalink
fix whoopsies
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Higgins committed Apr 12, 2022
1 parent d26e393 commit 7f357c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/test_graph/test_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class GraphSlice(unittest.TestCase):
def test_slice():
def test_slice(self):
"""
We pervert the slice object,
and use start, stop, step as subject, predicate, object
Expand Down
2 changes: 1 addition & 1 deletion test/test_literal/test_duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_to_python_ymdhms_duration(self):
assert isinstance(l.toPython(), Duration)
assert l.toPython() == parse_duration("P1Y2M4DT5H6M7S")

def test_equalityself():
def test_equalityself(self):
x = Literal("P1Y2M3W4DT5H6M7S", datatype=XSD.duration)
y = Literal("P1Y2M25DT5H6M7S", datatype=XSD.duration)
assert x == y
Expand Down
9 changes: 3 additions & 6 deletions test/test_parsers/test_empty_xml_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@
baseUri2 = URIRef("http://example.com/foo/bar")

class TestEmptyBase(unittest.TestCase):
def setup(self, method):
def test_empty_base_ref(self):
self.graph = ConjunctiveGraph()
self.graph.parse(data=test_data, publicID=baseUri, format="xml")

def test_empty_base_ref(self):
assert len(list(self.graph)) > 0, "There should be at least one statement in the graph"
assert (
baseUri,
Expand All @@ -50,11 +48,10 @@ def test_empty_base_ref(self):


class TestRelativeBase(unittest.TestCase):
def setup(self, method):
self.graph = ConjunctiveGraph()
self.graph.parse(data=test_data2, publicID=baseUri2, format="xml")

def test_relative_base_ref(self):
self.graph = ConjunctiveGraph()
self.graph.parse(data=test_data2, publicID=baseUri2, format="xml")
assert len(self.graph) > 0, "There should be at least one statement in the graph"
resolvedBase = URIRef("http://example.com/baz")
assert (
Expand Down
1 change: 1 addition & 0 deletions test/test_parsers/test_n3parse_of_rdf_lists.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import unittest
from rdflib.graph import Graph
from rdflib.term import URIRef

Expand Down

0 comments on commit 7f357c3

Please sign in to comment.