diff --git a/tests/test_op_sql_execute.py b/tests/test_op_sql_execute.py index cb2744a..574e7a6 100644 --- a/tests/test_op_sql_execute.py +++ b/tests/test_op_sql_execute.py @@ -29,10 +29,16 @@ async def test__sql_with_param(self): async def test__sql_with_param_cols(self): res = await self.conn.execute("select 1 as a, 2 as b where 1 = ?", [1]) - self.assertResponseEqualKV(res, [{ - self._compat_field_name("a"): 1, - self._compat_field_name("b"): 2, - }], "Body ok") + self.assertResponseEqualKV( + res, + [ + { + self._compat_field_name("a"): 1, + self._compat_field_name("b"): 2, + } + ], + "Body ok", + ) @ensure_version(min=(2, 0)) async def test__sql_with_param_cols2(self): @@ -40,10 +46,16 @@ async def test__sql_with_param_cols2(self): "select 1 as a, 2 as b where 1 = ? and 2 = ?", [1, 2] ) - self.assertResponseEqualKV(res, [{ - self._compat_field_name("a"): 1, - self._compat_field_name("b"): 2, - }], "Body ok") + self.assertResponseEqualKV( + res, + [ + { + self._compat_field_name("a"): 1, + self._compat_field_name("b"): 2, + } + ], + "Body ok", + ) @ensure_version(min=(2, 0)) async def test__sql_with_param_cols_maps(self): @@ -55,10 +67,16 @@ async def test__sql_with_param_cols_maps(self): ], ) - self.assertResponseEqualKV(res, [{ - self._compat_field_name("a"): 1, - self._compat_field_name("b"): 2, - }], "Body ok") + self.assertResponseEqualKV( + res, + [ + { + self._compat_field_name("a"): 1, + self._compat_field_name("b"): 2, + } + ], + "Body ok", + ) @ensure_version(min=(2, 0)) async def test__sql_with_param_cols_maps_and_positional(self): @@ -67,10 +85,16 @@ async def test__sql_with_param_cols_maps_and_positional(self): [{":p1": 1}, {":p2": 2}, 3, 4], ) - self.assertResponseEqualKV(res, [{ - self._compat_field_name("a"): 1, - self._compat_field_name("b"): 2, - }], "Body ok") + self.assertResponseEqualKV( + res, + [ + { + self._compat_field_name("a"): 1, + self._compat_field_name("b"): 2, + } + ], + "Body ok", + ) @ensure_version(min=(2, 0)) async def test__sql_insert(self): @@ -230,7 +254,9 @@ async def test__sql_select_full_metadata(self): self.assertEqual(None, res.metadata.fields[1].is_autoincrement) self.assertIsNone(res.metadata.fields[0].collation) - self.assertEqual(self._compat_field_name("name"), res.metadata.fields[1].name) + self.assertEqual( + self._compat_field_name("name"), res.metadata.fields[1].name + ) self.assertEqual("string", res.metadata.fields[1].type) self.assertEqual(True, res.metadata.fields[1].is_nullable) self.assertEqual(None, res.metadata.fields[1].is_autoincrement)