Skip to content

Commit 614bca1

Browse files
DanielDaniel
Daniel
authored and
Daniel
committed
flake8
1 parent 201a65b commit 614bca1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/panels/test_sql.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,17 @@ def test_param_conversion(self):
123123
))
124124

125125
@unittest.skipIf(connection.vendor in ('sqlite', 'postgresql'),
126-
'Mixing bytestrings and text is not allowed on PostgreSQL and SQLite')
126+
'Mixing bytestrings and text is not allowed on PostgreSQL and'
127+
'SQLite')
127128
def test_binary_param_force_text(self):
128129
self.assertEqual(len(self.panel._queries), 0)
129130

130131
with connection.cursor() as cursor:
131132
cursor.execute("SELECT * FROM auth_user WHERE username = %s", [b'\xff'])
132133

133134
self.assertEqual(len(self.panel._queries), 1)
134-
self.assertEqual(self.panel._queries[0][1]['sql'], "SELECT * FROM auth_user WHERE username = '\ufffd'")
135+
self.assertEqual(self.panel._queries[0][1]['sql'],
136+
"SELECT * FROM auth_user WHERE username = '\ufffd'")
135137

136138
self.panel.process_response(self.request, self.response)
137139
self.panel.generate_stats(self.request, self.response)

0 commit comments

Comments
 (0)