コード例 #1
0
 def test_gitflow_init_inits_underlying_git_repo(self):
     sandbox = create_sandbox(self)
     gitflow = GitFlow(sandbox)
     dot_git_dir = os.path.join(sandbox, '.git')
     self.assertFalse(os.path.exists(dot_git_dir))
     gitflow.init()
     self.assertTrue(os.path.exists(dot_git_dir))
     self.assertTrue(gitflow.is_initialized())
コード例 #2
0
ファイル: test_core.py プロジェクト: OBdA/gitflow
 def test_gitflow_init_inits_underlying_git_repo(self):
     sandbox = create_sandbox(self)
     gitflow = GitFlow(sandbox)
     dot_git_dir = os.path.join(sandbox, '.git')
     self.assertFalse(os.path.exists(dot_git_dir))
     gitflow.init()
     self.assertTrue(os.path.exists(dot_git_dir))
     self.assertTrue(gitflow.is_initialized())
コード例 #3
0
 def test_gitflow_init_marks_initialized(self):
     repo = create_git_repo(self)
     gitflow = GitFlow(repo)
     self.assertFalse(gitflow.is_initialized())
     gitflow.init()
     self.assertTrue(gitflow.is_initialized())
コード例 #4
0
ファイル: test_core.py プロジェクト: OBdA/gitflow
 def test_gitflow_init_marks_initialized(self):
     repo = create_git_repo(self)
     gitflow = GitFlow(repo)
     self.assertFalse(gitflow.is_initialized())
     gitflow.init()
     self.assertTrue(gitflow.is_initialized())