Chromium Code Reviews| Index: recipe_modules/properties/test_api.py |
| diff --git a/recipe_modules/properties/test_api.py b/recipe_modules/properties/test_api.py |
| index 069efd14d1860bb63f679216abd997f666754454..1a94a15d1a14e5846d71625805e76d859f92f1dd 100644 |
| --- a/recipe_modules/properties/test_api.py |
| +++ b/recipe_modules/properties/test_api.py |
| @@ -85,9 +85,9 @@ class PropertiesTestApi(recipe_test_api.RecipeTestApi): |
| assert project |
| assert git_url |
| assert gerrit_url |
| - # Pop old style values from kwargs. |
| - patch_issue = int(kwargs.pop('issue', 456789)) |
| - patch_set = int(kwargs.pop('patchset', 12)) |
| + # Support old and new style patch{set,issue} specification. |
| + patch_issue = int(kwargs.pop('issue', kwargs.pop('patch_issue',456789))) |
|
Michael Achenbach
2016/11/01 20:01:13
nit: space after comma
tandrii(chromium)
2016/11/02 23:23:59
Done.
|
| + patch_set = int(kwargs.pop('patchset', kwargs.pop('patch_set', 12))) |
| # Note that new Gerrit patch properties all start with 'patch_' prefix. |
| ret = self.generic( |
| patch_storage='gerrit', |