def test_add_file_to_empty(self, empty_repo, dotfile_in_home): repo = empty_repo repo.add(dotfile_in_home) assert dotfile_exists(dotfile_in_home, repo)
def test_add_file_to_nonempty(self, filled_repo, dotfile_in_home): repo = filled_repo repo.add(dotfile_in_home) assert dotfile_exists(dotfile_in_home, repo)
def test_add_and_remove_file(empty_repo, dotfile_in_home): repo = empty_repo repo.add(dotfile_in_home) repo.remove(dotfile_in_home) assert not dotfile_exists(dotfile_in_home, repo)