示例#1
0
 def test_new_index(self):
     rp = temp_path / 'sneechenator'
     wrangler = snch.SneechWrangler(rp)
     path_index = wrangler.new_index('uri.interlex.org')
     assert path_index.exists(), 'wat'
     g = OntGraph(path=path_index).parse()
     try:
         next(g[:rdf.type:snch.snchn.IndexGraph])
     except StopIteration:
         assert False, g.debug()
示例#2
0
    def setUpClass(cls):
        if temp_path_aug.exists(
        ):  # in case someone else forgot to clean up after themselves
            temp_path.rmtree()

        temp_path_aug.mkdir()
        rp = temp_path / 'sneechenator'
        cls.wrangler = snch.SneechWrangler(rp)
        path_index = cls.wrangler.new_index('uri.interlex.org')
        cls.sins = {}
        for p in (sfy, sft):
            sin = fix_file(p)
            cls.sins[p] = sin