@@ -58,9 +58,10 @@ def test_main_filepath_validations_false_firstfont(capsys):
58
58
59
59
with pytest .raises (SystemExit ) as exit_info :
60
60
run (args )
61
- captured = capsys .readouterr ()
62
- assert captured .error .startswith ("[*] ERROR: The file path" )
63
- assert exit_info .value .code == 1
61
+
62
+ captured = capsys .readouterr ()
63
+ assert captured .err .startswith ("[*] ERROR: The file path" )
64
+ assert exit_info .value .code == 1
64
65
65
66
66
67
def test_main_filepath_validations_false_secondfont (capsys ):
@@ -69,9 +70,10 @@ def test_main_filepath_validations_false_secondfont(capsys):
69
70
70
71
with pytest .raises (SystemExit ) as exit_info :
71
72
run (args )
72
- captured = capsys .readouterr ()
73
- assert captured .error .startswith ("[*] ERROR: The file path" )
74
- assert exit_info .value .code == 1
73
+
74
+ captured = capsys .readouterr ()
75
+ assert captured .err .startswith ("[*] ERROR: The file path" )
76
+ assert exit_info .value .code == 1
75
77
76
78
77
79
#
@@ -83,9 +85,10 @@ def test_main_include_exclude_defined_simultaneously(capsys):
83
85
84
86
with pytest .raises (SystemExit ) as exit_info :
85
87
run (args )
86
- captured = capsys .readouterr ()
87
- assert captured .error .startswith ("[*] Error: --include and --exclude are mutually exclusive options" )
88
- assert exit_info .value .code == 1
88
+
89
+ captured = capsys .readouterr ()
90
+ assert captured .err .startswith ("[*] Error: --include and --exclude are mutually exclusive options" )
91
+ assert exit_info .value .code == 1
89
92
90
93
91
94
#
@@ -286,39 +289,43 @@ def test_main_include_with_bad_table_definition(capsys):
286
289
287
290
with pytest .raises (SystemExit ) as exit_info :
288
291
run (args )
289
- captured = capsys .readouterr ()
290
- assert captured .error .startswith ("[*] ERROR:" )
291
- assert exit_info .value .code == 1
292
+
293
+ captured = capsys .readouterr ()
294
+ assert captured .err .startswith ("[*] ERROR:" )
295
+ assert exit_info .value .code == 1
292
296
293
297
294
298
def test_main_include_with_bad_table_definition_in_multi_table_request (capsys ):
295
299
args = ["--include" , "head,bogus" , ROBOTO_BEFORE_PATH , ROBOTO_AFTER_PATH ]
296
300
297
301
with pytest .raises (SystemExit ) as exit_info :
298
302
run (args )
299
- captured = capsys .readouterr ()
300
- assert captured .error .startswith ("[*] ERROR:" )
301
- assert exit_info .value .code == 1
303
+
304
+ captured = capsys .readouterr ()
305
+ assert captured .err .startswith ("[*] ERROR:" )
306
+ assert exit_info .value .code == 1
302
307
303
308
304
309
def test_main_exclude_with_bad_table_definition (capsys ):
305
310
args = ["--exclude" , "bogus" , ROBOTO_BEFORE_PATH , ROBOTO_AFTER_PATH ]
306
311
307
312
with pytest .raises (SystemExit ) as exit_info :
308
313
run (args )
309
- captured = capsys .readouterr ()
310
- assert captured .error .startswith ("[*] ERROR:" )
311
- assert exit_info .value .code == 1
314
+
315
+ captured = capsys .readouterr ()
316
+ assert captured .err .startswith ("[*] ERROR:" )
317
+ assert exit_info .value .code == 1
312
318
313
319
314
320
def test_main_exclude_with_bad_table_definition_in_multi_table_request (capsys ):
315
321
args = ["--exclude" , "head,bogus" , ROBOTO_BEFORE_PATH , ROBOTO_AFTER_PATH ]
316
322
317
323
with pytest .raises (SystemExit ) as exit_info :
318
324
run (args )
319
- captured = capsys .readouterr ()
320
- assert captured .error .startswith ("[*] ERROR:" )
321
- assert exit_info .value .code == 1
325
+
326
+ captured = capsys .readouterr ()
327
+ assert captured .err .startswith ("[*] ERROR:" )
328
+ assert exit_info .value .code == 1
322
329
323
330
324
331
def test_main_head_request (capsys ):
0 commit comments