File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
cherry_picker/cherry_picker Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ def test_get_author_info_from_short_sha(subprocess_check_output):
176
176
],
177
177
)
178
178
@mock .patch ("os.path.exists" )
179
+ @mock .patch ("cherry_picker.cherry_picker.validate_sha" )
179
180
def test_sorted_branch (os_path_exists , config , input_branches , sorted_branches ):
180
181
os_path_exists .return_value = True
181
182
cp = CherryPicker (
@@ -384,7 +385,6 @@ def test_load_config_no_head_sha(tmp_git_repo_dir, git_add, git_commit):
384
385
)
385
386
git_add (relative_config_path )
386
387
git_commit (f"Add { relative_config_path } " )
387
- scm_revision = get_sha1_from ("HEAD" )
388
388
389
389
with mock .patch ("cherry_picker.cherry_picker.get_sha1_from" , return_value = "" ):
390
390
cfg = load_config (relative_config_path )
@@ -463,7 +463,7 @@ def test_from_git_rev_read_uncommitted(tmp_git_repo_dir, git_add, git_commit):
463
463
)
464
464
git_add ("." )
465
465
with pytest .raises (ValueError ):
466
- from_git_rev_read ("HEAD:" + relative_file_path ) == some_text
466
+ from_git_rev_read ("HEAD:" + relative_file_path )
467
467
468
468
469
469
def test_from_git_rev_read (tmp_git_repo_dir , git_add , git_commit ):
You can’t perform that action at this time.
0 commit comments