コード例 #1
0
ファイル: git.py プロジェクト: dem4ply/chibi_command
 def test_should_work(self):
     result = Git.pull(src=self.root_dir)
     self.assertTrue(result)
コード例 #2
0
ファイル: git.py プロジェクト: dem4ply/chibi_command
 def test_with_track_should_change_the_branch(self):
     result = Git.checkout_track(branch='origin/master', src=self.root_dir)
     self.assertFalse(result)
コード例 #3
0
ファイル: git.py プロジェクト: dem4ply/chibi_command
 def setUp(self):
     super().setUp()
     result = Git.clone(self.repo_url, self.root_dir)
     self.assertTrue(result)
コード例 #4
0
ファイル: git.py プロジェクト: dem4ply/chibi_command
 def test_when_do_checkout_wiht_brnach_should_change_branch(self):
     result = Git.checkout(branch='origin/master', src=self.root_dir)
     self.assertTrue(result)
コード例 #5
0
ファイル: git.py プロジェクト: dem4ply/chibi_command
 def test_when_do_checkout_wihtout_brnach_should_restore_files(self):
     result = Git.checkout(src=self.root_dir)
     self.assertTrue(result)
コード例 #6
0
ファイル: git.py プロジェクト: dem4ply/chibi_command
 def setUp(self):
     super().setUp()
     result = Git.clone(self.repo_url, self.root_dir)
コード例 #7
0
ファイル: git.py プロジェクト: dem4ply/chibi_command
 def test_when_clone_without_destiny_should_use_current_path(self):
     cd(self.root_dir)
     result = Git.clone(self.repo_url)
     self.assertTrue(result)
     self.assertTrue((self.root_dir + 'chibi_command').exists)
コード例 #8
0
ファイル: git.py プロジェクト: dem4ply/chibi_command
 def test_when_clone_with_destiny_should_doe_in_that_place(self):
     result = Git.clone(self.repo_url, self.root_dir)
     self.assertTrue(result)
     self.assertTrue(list(self.root_dir.ls()))