File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ def tearDown(self):
1212 gc .collect ()
1313
1414 @with_rw_directory
15- def test_init_repo_object (self , rw_dir ):
16- path_to_dir = rw_dir
15+ def test_init_repo_object (self , path_to_dir ):
1716
1817 # [1-test_init_repo_object]
1918 from git import Repo
@@ -32,19 +31,15 @@ def test_init_repo_object(self, rw_dir):
3231 # ![2-test_init_repo_object]
3332
3433 @with_rw_directory
35- def test_cloned_repo_object (self , rw_dir ):
36- local_dir = rw_dir
34+ def test_cloned_repo_object (self , local_dir ):
3735
3836 from git import Repo
3937 import git
4038 # code to clone from url
4139 # [1-test_cloned_repo_object]
42- repo_url = "https://github.com/LeoDaCoda/GitPython-TestFileSys .git"
40+ repo_url = "https://github.com/gitpython-developers/QuickStartTutorialFiles .git"
4341
44- try :
45- repo = Repo .clone_from (repo_url , local_dir )
46- except git .CommandError :
47- assert False , f"Invalid address { repo_url } "
42+ repo = Repo .clone_from (repo_url , local_dir )
4843 # ![1-test_cloned_repo_object]
4944
5045 # code to add files
You can’t perform that action at this time.
0 commit comments