Skip to content

Commit 4694f15

Browse files
committed
fixing flake8
1 parent d6e3327 commit 4694f15

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

qiita_db/metadata_template/test/test_util.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ def test_validate_invalid_column_names(self):
212212
pgsql = ['select', 'column', 'just_fine1']
213213
with self.assertRaises(qdb.exceptions.QiitaDBColumnError) as error:
214214
qdb.metadata_template.util.validate_invalid_column_names(pgsql)
215-
self.assertEqual(str(error.exception),
215+
self.assertEqual(
216+
str(error.exception),
216217
'The following column names in the template contain PgSQL '
217218
'reserved words: column, select.\nYou need to modify them.')
218219

@@ -221,7 +222,8 @@ def test_validate_invalid_column_names(self):
221222
'4column', 'just_fine2']
222223
with self.assertRaises(qdb.exceptions.QiitaDBColumnError) as error:
223224
qdb.metadata_template.util.validate_invalid_column_names(invalid)
224-
self.assertEqual(str(error.exception),
225+
self.assertEqual(
226+
str(error.exception),
225227
'The following column names in the template contain invalid '
226228
'chars: bla., ., tax on, this|is, {, 4column.\nYou need to '
227229
'modify them.')
@@ -230,15 +232,17 @@ def test_validate_invalid_column_names(self):
230232
forbidden = ['sampleid', 'just_fine3']
231233
with self.assertRaises(qdb.exceptions.QiitaDBColumnError) as error:
232234
qdb.metadata_template.util.validate_invalid_column_names(forbidden)
233-
self.assertEqual(str(error.exception),
235+
self.assertEqual(
236+
str(error.exception),
234237
'The following column names in the template contain invalid '
235238
'values: sampleid.\nYou need to modify them.')
236239

237240
# testing all
238241
_all = pgsql + invalid + forbidden
239242
with self.assertRaises(qdb.exceptions.QiitaDBColumnError) as error:
240243
qdb.metadata_template.util.validate_invalid_column_names(_all)
241-
self.assertEqual(str(error.exception),
244+
self.assertEqual(
245+
str(error.exception),
242246
'The following column names in the template contain PgSQL '
243247
'reserved words: column, select.\n'
244248
'The following column names in the template contain invalid '

0 commit comments

Comments
 (0)