There was an error while loading. Please reload this page.
1 parent a0045d8 commit 9833655Copy full SHA for 9833655
1 file changed
test/test_quick_doc.py
@@ -12,8 +12,7 @@ def tearDown(self):
12
gc.collect()
13
14
@with_rw_directory
15
- def test_init_repo_object(self, rw_dir):
16
- path_to_dir = rw_dir
+ def test_init_repo_object(self, path_to_dir):
17
18
# [1-test_init_repo_object]
19
from git import Repo
@@ -32,19 +31,15 @@ def test_init_repo_object(self, rw_dir):
32
31
# ![2-test_init_repo_object]
33
34
35
- def test_cloned_repo_object(self, rw_dir):
36
- local_dir = rw_dir
+ def test_cloned_repo_object(self, local_dir):
37
38
39
import git
40
# code to clone from url
41
# [1-test_cloned_repo_object]
42
- repo_url = "https://github.com/LeoDaCoda/GitPython-TestFileSys.git"
+ repo_url = "https://github.com/gitpython-developers/QuickStartTutorialFiles.git"
43
44
- try:
45
- repo = Repo.clone_from(repo_url, local_dir)
46
- except git.CommandError:
47
- assert False, f"Invalid address {repo_url}"
+ repo = Repo.clone_from(repo_url, local_dir)
48
# ![1-test_cloned_repo_object]
49
50
# code to add files
0 commit comments