Esempio n. 1
0
 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')
Esempio n. 2
0
 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)
Esempio n. 3
0
 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')
Esempio n. 4
0
 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)
Esempio n. 5
0
 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)
Esempio n. 6
0
 def test_release_finish_current(self):
     gitflow = GitFlow('.').init()
     gitflow.checkout('release', '1.0')
     runGitFlow('release', 'finish')
     self.assertNotIn('rel/1.0', Repo().branches)