8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f7faf commit f90d993Copy full SHA for f90d993
cherry_picker/cherry_picker/test.py
@@ -33,15 +33,16 @@ def changedir(d):
33
34
35
def test_get_base_branch():
36
+ # The format of cherry-pick branches we create are "backport-{SHA}-{base_branch}"
37
cherry_pick_branch = 'backport-afc23f4-2.7'
38
result = get_base_branch(cherry_pick_branch)
39
assert result == '2.7'
40
41
-def test_get_base_branch_without_dash():
42
- cherry_pick_branch ='master'
+def test_get_base_branch_which_has_dashes():
43
+ cherry_pick_branch ='backport-afc23f4-baseprefix-2.7-basesuffix'
44
- assert result == 'master'
45
+ assert result == 'baseprefix-2.7-basesuffix'
46
47
48
@mock.patch('subprocess.check_output')
0 commit comments