@@ -43,13 +43,16 @@ def _test_patch(asset, version, dir):
4343
4444@pytest .mark .skipif ('RPM_AVAILABLE == False' )
4545def test_patch_milestone (tmpdir ):
46- _test_patch ('milestone' , ('1.2.3' , ('0.4' , '%{?milestone}' , DIST_POSTFIX ), '.0rc2' ), tmpdir )
46+ _test_patch ('milestone' , ('1.2.3' , ('0.4' , '%{?milestone}' ,
47+ DIST_POSTFIX ), '.0rc2' ), tmpdir )
4748
4849
4950@pytest .mark .skipif ('RPM_AVAILABLE == False' )
5051def test_patch_milestone_bug (tmpdir ):
5152 # make sure rdopkg removes unwanted '%global milestone %{?milestone}'
52- _test_patch ('milestone-bug' , ('1.2.3' , ('0.4' , '' , DIST_POSTFIX ), None ), tmpdir )
53+ _test_patch ('milestone-bug' ,
54+ ('1.2.3' , ('0.4' , '' , DIST_POSTFIX ), None ),
55+ tmpdir )
5356
5457
5558@pytest .mark .skipif ('RPM_AVAILABLE == False' )
@@ -126,11 +129,13 @@ def test_patch_noop(tmpdir):
126129
127130
128131def test_patch_noop_detect (tmpdir ):
129- _test_patch_noop (tmpdir , 'patched' , ['patch' , '-l' , '--changelog' , 'detect' ])
132+ _test_patch_noop (tmpdir ,
133+ 'patched' , ['patch' , '-l' , '--changelog' , 'detect' ])
130134
131135
132136def test_patch_noop_count (tmpdir ):
133- _test_patch_noop (tmpdir , 'patched' , ['patch' , '-l' , '--changelog' , 'count' ])
137+ _test_patch_noop (tmpdir ,
138+ 'patched' , ['patch' , '-l' , '--changelog' , 'count' ])
134139
135140
136141def test_patch_noop_plain (tmpdir ):
@@ -141,7 +146,8 @@ def test_patch_noop_no_bump(tmpdir):
141146 _test_patch_noop (tmpdir , 'patched' , ['patch' , '-l' , '--no-bump' ])
142147
143148
144- def _test_patch_regen (tmpdir , distgit , distgit_after , cmd , norm_changelog = True ):
149+ def _test_patch_regen (tmpdir , distgit , distgit_after ,
150+ cmd , norm_changelog = True ):
145151 dist_path = common .prep_spec_test (tmpdir , distgit )
146152 with dist_path .as_cwd ():
147153 common .prep_patches_branch ()
@@ -153,7 +159,8 @@ def _test_patch_regen(tmpdir, distgit, distgit_after, cmd, norm_changelog=True):
153159 if norm_changelog :
154160 common .norm_changelog ()
155161 common .assert_distgit (dist_path , distgit_after )
156- assert commit_before != commit_after , "New commit not created after patch regen"
162+ assert commit_before != commit_after , \
163+ "New commit not created after patch regen"
157164 assert git_clean , "git not clean after action"
158165
159166
@@ -162,16 +169,20 @@ def test_patch_regen(tmpdir):
162169
163170
164171def test_patch_regen_detect (tmpdir ):
165- _test_patch_regen (tmpdir , 'patched' , 'patched-regen' , ['patch' , '-l' , '-C' , 'detect' ])
172+ _test_patch_regen (tmpdir , 'patched' , 'patched-regen' ,
173+ ['patch' , '-l' , '-C' , 'detect' ])
166174
167175
168176def test_patch_regen_count (tmpdir ):
169- _test_patch_regen (tmpdir , 'patched' , 'patched-regen' , ['patch' , '-l' , '-C' , 'count' ])
177+ _test_patch_regen (tmpdir , 'patched' , 'patched-regen' ,
178+ ['patch' , '-l' , '-C' , 'count' ])
170179
171180
172181def test_patch_regen_plain (tmpdir ):
173- _test_patch_regen (tmpdir , 'patched' , 'patched-regen' , ['patch' , '-l' , '--changelog' , 'plain' ])
182+ _test_patch_regen (tmpdir , 'patched' , 'patched-regen' ,
183+ ['patch' , '-l' , '--changelog' , 'plain' ])
174184
175185
176186def test_patch_regen_no_bump (tmpdir ):
177- _test_patch_regen (tmpdir , 'patched' , 'patched' , ['patch' , '-l' , '--no-bump' ], norm_changelog = False )
187+ _test_patch_regen (tmpdir , 'patched' , 'patched' ,
188+ ['patch' , '-l' , '--no-bump' ], norm_changelog = False )
0 commit comments