summaryrefslogtreecommitdiff
path: root/test/test_nt_w3c.py
diff options
context:
space:
mode:
authorGunnar Aastrand Grimnes <gromgull@gmail.com>2013-12-22 20:11:37 +0100
committerGunnar Aastrand Grimnes <gromgull@gmail.com>2013-12-22 20:11:37 +0100
commit1abdfb931e0fe8daba3a07e9d993d5b68d75223d (patch)
tree38c5aad896df5bed0b1d04962615bbf5702e583c /test/test_nt_w3c.py
parente3adce3ef49ddfc4e25ae265306a177ce7caf31d (diff)
downloadrdflib-1abdfb931e0fe8daba3a07e9d993d5b68d75223d.tar.gz
moved earl report generation to separate file - added reporting to nq/nt/trig/ttl
Diffstat (limited to 'test/test_nt_w3c.py')
-rw-r--r--test/test_nt_w3c.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/test_nt_w3c.py b/test/test_nt_w3c.py
index 5cbbff19..5659d699 100644
--- a/test/test_nt_w3c.py
+++ b/test/test_nt_w3c.py
@@ -4,6 +4,7 @@ test suite."""
from rdflib import Graph
from manifest import nose_tests, RDFT
+from testutils import nose_tst_earl_report
def nt(test):
g = Graph()
@@ -21,10 +22,18 @@ testers = {
RDFT.TestNTriplesNegativeSyntax: nt
}
-def test_nt():
+def test_nt(tests=None):
for t in nose_tests(testers, 'test/w3c/nt/manifest.ttl', legacy=True):
+ if tests:
+ for test in tests:
+ if test in t[1].uri: break
+ else:
+ continue
+
yield t
if __name__ == '__main__':
- pass
+ verbose = True
+
+ nose_tst_earl_report(test_nt, 'rdflib_nt')