def test_release_finish_prefix(self): gitflow = GitFlow('.').init() gitflow.checkout('release', '1.0') # release finish requires a name, not a prefix self.assertRaises(NoSuchBranchError, run_git_flow, 'release', 'finish', '1')
def test_release_finish_empty_prefix(self): gitflow = GitFlow('.').init() gitflow.checkout('release', '1.0') run_git_flow('release', 'finish', '') self.assertNotIn('rel/1.0', Repo().branches)
def test_release_finish_prefix(self): gitflow = GitFlow('.').init() gitflow.checkout('release', '1.0') # release finish requires a name, not a prefix self.assertRaises(NoSuchBranchError, runGitFlow, 'release', 'finish', '1')
def test_release_finish_empty_prefix(self): gitflow = GitFlow('.').init() gitflow.checkout('release', '1.0') runGitFlow('release', 'finish', '') self.assertNotIn('rel/1.0', Repo().branches)
def test_release_finish_current(self): gitflow = GitFlow('.').init() gitflow.checkout('release', '1.0') run_git_flow('release', 'finish') self.assertNotIn('rel/1.0', Repo().branches)
def test_release_finish_current(self): gitflow = GitFlow('.').init() gitflow.checkout('release', '1.0') runGitFlow('release', 'finish') self.assertNotIn('rel/1.0', Repo().branches)