@@ -179,12 +179,11 @@ def test_check_no_conventional_commit(mocker):
179
179
with get_temp_dir () as dir :
180
180
181
181
tempfile = os .path .join (dir , "temp_commit_file" )
182
- with open (tempfile , 'w' ) as f :
182
+ with open (tempfile , "w" ) as f :
183
183
f .write ("no conventional commit" )
184
184
185
185
check_cmd = commands .Check (
186
- config = config ,
187
- arguments = {"commit_msg_file" : tempfile }
186
+ config = config , arguments = {"commit_msg_file" : tempfile }
188
187
)
189
188
check_cmd ()
190
189
error_mock .assert_called_once ()
@@ -195,12 +194,11 @@ def test_check_conventional_commit(mocker):
195
194
with get_temp_dir () as dir :
196
195
197
196
tempfile = os .path .join (dir , "temp_commit_file" )
198
- with open (tempfile , 'w' ) as f :
197
+ with open (tempfile , "w" ) as f :
199
198
f .write ("feat(lang): added polish language" )
200
199
201
200
check_cmd = commands .Check (
202
- config = config ,
203
- arguments = {"commit_msg_file" : tempfile }
201
+ config = config , arguments = {"commit_msg_file" : tempfile }
204
202
)
205
203
206
204
check_cmd ()
@@ -209,7 +207,4 @@ def test_check_conventional_commit(mocker):
209
207
210
208
def test_check_command_when_commit_file_not_found ():
211
209
with pytest .raises (FileNotFoundError ):
212
- commands .Check (
213
- config = config ,
214
- arguments = {"commit_msg_file" : "" }
215
- )()
210
+ commands .Check (config = config , arguments = {"commit_msg_file" : "" })()
0 commit comments