def test_repo_update_update(self, tmpdir):
"""Verify that update_repo tries to update the repo."""
p = tmpdir.mkdir('test')
path = str(p)
repo = Repo.init(path)
file = p / 'test.txt'
file.write_text(u'Testing', encoding='utf-8')
repo.index.add(['test.txt'])
repo.index.commit('Testing')
result = osa_differ.update_repo(path, path)
assert result.active_branch.name == 'master'
assert not result.is_dirty()
评论列表
文章目录