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)
def make_repository(self, ns): return Repository.find(ns.cwd)