@@ -285,15 +285,19 @@ def test_minimum_valid_parameters(
285
285
mysql_credentials .host ,
286
286
"-P" ,
287
287
mysql_credentials .port ,
288
- "--mysql-integer-type" ,
289
- mysql_integer_type ,
290
- "--mysql-string-type" ,
291
- mysql_string_type ,
292
- "--mysql-text-type" ,
293
- mysql_text_type ,
294
- "-c" ,
295
- chunk ,
296
288
]
289
+ if mysql_integer_type :
290
+ arguments .append ("--mysql-integer-type" )
291
+ arguments .append (mysql_integer_type )
292
+ if mysql_string_type :
293
+ arguments .append ("--mysql-string-type" )
294
+ arguments .append (mysql_string_type )
295
+ if mysql_text_type :
296
+ arguments .append ("--mysql-text-type" )
297
+ arguments .append (mysql_text_type )
298
+ if chunk :
299
+ arguments .append ("-c" )
300
+ arguments .append (chunk )
297
301
if with_rowid :
298
302
arguments .append ("--with-rowid" )
299
303
result = cli_runner .invoke (
@@ -457,12 +461,12 @@ def test_version(self, cli_runner):
457
461
def test_quiet (
458
462
self ,
459
463
cli_runner ,
464
+ mysql_database ,
460
465
sqlite_database ,
461
466
mysql_credentials ,
462
467
mysql_integer_type ,
463
468
mysql_string_type ,
464
469
mysql_text_type ,
465
- mysql_database ,
466
470
chunk ,
467
471
with_rowid ,
468
472
):
@@ -479,16 +483,20 @@ def test_quiet(
479
483
mysql_credentials .host ,
480
484
"-P" ,
481
485
mysql_credentials .port ,
482
- "--mysql-integer-type" ,
483
- mysql_integer_type ,
484
- "--mysql-string-type" ,
485
- mysql_string_type ,
486
- "--mysql-text-type" ,
487
- mysql_text_type ,
488
- "-c" ,
489
- chunk ,
490
486
"-q" ,
491
487
]
488
+ if mysql_integer_type :
489
+ arguments .append ("--mysql-integer-type" )
490
+ arguments .append (mysql_integer_type )
491
+ if mysql_string_type :
492
+ arguments .append ("--mysql-string-type" )
493
+ arguments .append (mysql_string_type )
494
+ if mysql_text_type :
495
+ arguments .append ("--mysql-text-type" )
496
+ arguments .append (mysql_text_type )
497
+ if chunk :
498
+ arguments .append ("-c" )
499
+ arguments .append (chunk )
492
500
if with_rowid :
493
501
arguments .append ("--with-rowid" )
494
502
result = cli_runner .invoke (
0 commit comments