Skip to content

Commit e4ac2b8

Browse files
committed
Update test command for downloading
1 parent 2d34814 commit e4ac2b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_download.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_download_git_clone_with_branch():
6565
branch_name = "ci-test"
6666

6767
# when
68-
success, _, oss_name, oss_version = download_git_clone(git_url, target_dir, branch=branch_name)
68+
success, _, oss_name, oss_version = download_git_clone(git_url, target_dir, "", branch_name)
6969

7070
# then
7171
assert success is True
@@ -81,7 +81,7 @@ def test_download_git_clone_with_tag():
8181
tag_name = "v32"
8282

8383
# when
84-
success, _, oss_name, oss_version = download_git_clone(git_url, target_dir, tag=tag_name)
84+
success, _, oss_name, oss_version = download_git_clone(git_url, target_dir, "", tag_name)
8585

8686
# then
8787
assert success is True
@@ -114,7 +114,7 @@ def test_download_main_branch_when_non_existent_branch_entered():
114114
expected_oss_name = "main"
115115

116116
# when
117-
success, _, oss_name, oss_version = download_git_clone(git_url, target_dir, branch=branch_name)
117+
success, _, oss_name, oss_version = download_git_clone(git_url, target_dir, "", "", branch_name)
118118

119119
# then
120120
assert success is True
@@ -131,7 +131,7 @@ def test_download_main_branch_when_non_existent_tag_entered():
131131
expected_oss_name = "main"
132132

133133
# when
134-
success, _, oss_name, oss_version = download_git_clone(git_url, target_dir, tag=tag_name)
134+
success, _, oss_name, oss_version = download_git_clone(git_url, target_dir, "", tag_name)
135135

136136
# then
137137
assert success is True

0 commit comments

Comments
 (0)