File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ def tearDown(self):
12
12
gc .collect ()
13
13
14
14
@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 ):
17
16
18
17
# [1-test_init_repo_object]
19
18
from git import Repo
@@ -32,19 +31,15 @@ def test_init_repo_object(self, rw_dir):
32
31
# ![2-test_init_repo_object]
33
32
34
33
@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 ):
37
35
38
36
from git import Repo
39
37
import git
40
38
# code to clone from url
41
39
# [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"
43
41
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 )
48
43
# ![1-test_cloned_repo_object]
49
44
50
45
# code to add files
You can’t perform that action at this time.
0 commit comments