Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9833655

Browse files
committed
Updated the sample repo URL
1 parenta0045d8 commit9833655

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

‎test/test_quick_doc.py

Lines 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-
deftest_init_repo_object(self,rw_dir):
16-
path_to_dir=rw_dir
15+
deftest_init_repo_object(self,path_to_dir):
1716

1817
# [1-test_init_repo_object]
1918
fromgitimportRepo
@@ -32,19 +31,15 @@ def test_init_repo_object(self, rw_dir):
3231
# ![2-test_init_repo_object]
3332

3433
@with_rw_directory
35-
deftest_cloned_repo_object(self,rw_dir):
36-
local_dir=rw_dir
34+
deftest_cloned_repo_object(self,local_dir):
3735

3836
fromgitimportRepo
3937
importgit
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-
exceptgit.CommandError:
47-
assertFalse,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)

[8]ページ先頭

©2009-2025 Movatter.jp