Beispiel #1
0
    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())
Beispiel #2
0
 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')
Beispiel #3
0
 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$')
Beispiel #4
0
 def test_branch(self):
     self._deploy('branch')
     commands.delete(['1.0'], branch='branch')
     check_call_silent(['git', 'checkout', 'branch'])
     self._test_delete()
Beispiel #5
0
 def test_delete_version(self):
     self._deploy()
     commands.delete(['1.0'])
     check_call_silent(['git', 'checkout', 'gh-pages'])
     self._test_delete()