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

Commit04e31d5

Browse files
committed
Update tests to check for base branches which have dashes in them.
1 parentc5f7faf commit04e31d5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎cherry_picker/cherry_picker/test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@ def changedir(d):
3333

3434

3535
deftest_get_base_branch():
36+
# The format of cherry-pick branches we create are "backport-{SHA}-{base_branch}"
3637
cherry_pick_branch='backport-afc23f4-2.7'
3738
result=get_base_branch(cherry_pick_branch)
3839
assertresult=='2.7'
3940

4041

41-
deftest_get_base_branch_without_dash():
42-
cherry_pick_branch='master'
42+
deftest_get_base_branch_which_has_dashes():
43+
cherry_pick_branch='backport-afc23f4-baseprefix-2.7-basesuffix'
4344
result=get_base_branch(cherry_pick_branch)
44-
assertresult=='master'
45+
assertresult=='prefix-2.7-suffix'
4546

4647

4748
@mock.patch('subprocess.check_output')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp