def test_prefix_delete_all(self): self._deploy(prefix='prefix') commands.delete(all=True, prefix='prefix') check_call_silent(['git', 'checkout', 'gh-pages']) message = check_output(['git', 'log', '-1', '--pretty=%B']).rstrip() self.assertRegex(message, r'^Removed everything in prefix with mike \S+$') assertDirectory('prefix', set())
def test_prefix(self): self._deploy(prefix='prefix') commands.delete(['1.0'], prefix='prefix') check_call_silent(['git', 'checkout', 'gh-pages']) self._test_delete(directory='prefix')
def test_commit_message(self): self._deploy() commands.delete(['1.0'], message='commit message') check_call_silent(['git', 'checkout', 'gh-pages']) self._test_delete('^commit message$')
def test_branch(self): self._deploy('branch') commands.delete(['1.0'], branch='branch') check_call_silent(['git', 'checkout', 'branch']) self._test_delete()
def test_delete_version(self): self._deploy() commands.delete(['1.0']) check_call_silent(['git', 'checkout', 'gh-pages']) self._test_delete()