コード例 #1
0
def test_find_repository_from_subdir():
    with TempDir() as d:
        Repository.init(d)

        foobar = d / 'foo' / 'bar'
        foobar.mkdir(parents=True)
        r = Repository.find(foobar)
        assert r is not None
        assert Path(r.harmony_directory) == (d / d_harmony)
コード例 #2
0
 def make_repository(self, ns):
     return Repository.find(ns.cwd)