Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9833655

Browse filesBrowse files
committed
Updated the sample repo URL
1 parent a0045d8 commit 9833655
Copy full SHA for 9833655

File tree

Expand file treeCollapse file tree

1 file changed

+4
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-9
lines changed

‎test/test_quick_doc.py

Copy file name to clipboardExpand all lines: test/test_quick_doc.py
+4-9Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.