示例#1
0
 def test_no_syncer_detected(self, tmp_path):
     syncer = base.AutodetectSyncer(str(tmp_path))
     assert isinstance(syncer, base.DisabledSyncer)
示例#2
0
 def test_syncer_detected(self, find_binary, tmp_path):
     d = tmp_path / '.git'
     d.mkdir()
     syncer = base.AutodetectSyncer(str(tmp_path))
     assert isinstance(syncer, git.git_syncer)
示例#3
0
文件: test_base.py 项目: ulm/pkgcore
 def test_syncer_detected(self, tmp_path):
     d = tmp_path / ".git"
     d.mkdir()
     syncer = base.AutodetectSyncer(str(tmp_path))
     assert isinstance(syncer, git.git_syncer)