@@ -212,7 +212,8 @@ def test_validate_invalid_column_names(self):
212
212
pgsql = ['select' , 'column' , 'just_fine1' ]
213
213
with self .assertRaises (qdb .exceptions .QiitaDBColumnError ) as error :
214
214
qdb .metadata_template .util .validate_invalid_column_names (pgsql )
215
- self .assertEqual (str (error .exception ),
215
+ self .assertEqual (
216
+ str (error .exception ),
216
217
'The following column names in the template contain PgSQL '
217
218
'reserved words: column, select.\n You need to modify them.' )
218
219
@@ -221,7 +222,8 @@ def test_validate_invalid_column_names(self):
221
222
'4column' , 'just_fine2' ]
222
223
with self .assertRaises (qdb .exceptions .QiitaDBColumnError ) as error :
223
224
qdb .metadata_template .util .validate_invalid_column_names (invalid )
224
- self .assertEqual (str (error .exception ),
225
+ self .assertEqual (
226
+ str (error .exception ),
225
227
'The following column names in the template contain invalid '
226
228
'chars: bla., ., tax on, this|is, {, 4column.\n You need to '
227
229
'modify them.' )
@@ -230,15 +232,17 @@ def test_validate_invalid_column_names(self):
230
232
forbidden = ['sampleid' , 'just_fine3' ]
231
233
with self .assertRaises (qdb .exceptions .QiitaDBColumnError ) as error :
232
234
qdb .metadata_template .util .validate_invalid_column_names (forbidden )
233
- self .assertEqual (str (error .exception ),
235
+ self .assertEqual (
236
+ str (error .exception ),
234
237
'The following column names in the template contain invalid '
235
238
'values: sampleid.\n You need to modify them.' )
236
239
237
240
# testing all
238
241
_all = pgsql + invalid + forbidden
239
242
with self .assertRaises (qdb .exceptions .QiitaDBColumnError ) as error :
240
243
qdb .metadata_template .util .validate_invalid_column_names (_all )
241
- self .assertEqual (str (error .exception ),
244
+ self .assertEqual (
245
+ str (error .exception ),
242
246
'The following column names in the template contain PgSQL '
243
247
'reserved words: column, select.\n '
244
248
'The following column names in the template contain invalid '
0 commit comments