コード例 #1
0
def test_dawg():

    setFlags()

    if SPARQL10Tests:
        for t in nose_tests(testers, "test/DAWG/data-r2/manifest-evaluation.ttl"):
            yield t

    if SPARQL11Tests:
        for t in nose_tests(testers, "test/DAWG/data-sparql11/manifest-all.ttl"):
            yield t

    if RDFLibTests:
        for t in nose_tests(testers, "test/DAWG/rdflib/manifest.ttl"):
            yield t

    resetFlags()
コード例 #2
0
def test_nquads(tests=None):
    for t in nose_tests(testers, "test/w3c/nquads/manifest.ttl"):
        if tests:
            for test in tests:
                if test in t[1].uri:
                    break
            else:
                continue

        yield t
コード例 #3
0
def test_nt(tests=None):
    manifest_file = os.path.join(TEST_DIR, "w3c/nt/manifest.ttl")
    for t in nose_tests(testers, manifest_file, legacy=True):
        if tests:
            for test in tests:
                if test in t[1].uri:
                    break
            else:
                continue

        yield t