@@ -141,7 +141,6 @@ def test_execute_with_args(mocked_connection):
141141 cursor .execute (statement , 1 )
142142 mocked_connection .client .sql .assert_called_once_with (statement , 1 , None )
143143
144-
145144def test_execute_with_bulk_args (mocked_connection ):
146145 """
147146 Verify that `cursor.execute` is called with the right parameters
@@ -177,10 +176,9 @@ def test_execute_custom_converter(mocked_connection):
177176 "duration" : 123 ,
178177 }
179178
180- with mock .patch .object (
181- mocked_connection .client ,
182- 'sql' ,
183- return_value = response ):
179+ with mock .patch .object (mocked_connection .client ,
180+ 'sql' ,
181+ return_value = response ):
184182 cursor .execute ("" )
185183 result = cursor .fetchall ()
186184
@@ -222,8 +220,7 @@ def test_execute_with_converter_and_invalid_data_type(mocked_connection):
222220 with mock .patch .object (
223221 mocked_connection .client ,
224222 'sql' ,
225- return_value = response
226- ):
223+ return_value = response ):
227224 cursor .execute ("" )
228225 with pytest .raises (ValueError ) as e :
229226 cursor .fetchone ()
@@ -240,10 +237,9 @@ def test_execute_array_with_converter(mocked_connection):
240237 "rowcount" : 1 ,
241238 "duration" : 123 ,
242239 }
243- with mock .patch .object (
244- mocked_connection .client ,
245- 'sql' ,
246- return_value = response ):
240+ with mock .patch .object (mocked_connection .client ,
241+ 'sql' ,
242+ return_value = response ):
247243 cursor .execute ("" )
248244 result = cursor .fetchone ()
249245
0 commit comments