@@ -45,7 +45,7 @@ def test_view_unsupported_output_suffix(self, tmp_path, vcz_path, suffix):
45
45
46
46
def test_view_good_path (self , tmp_path , vcz_path ):
47
47
output_path = tmp_path / "tmp.vcf"
48
- runner = ct .CliRunner (mix_stderr = False )
48
+ runner = ct .CliRunner ()
49
49
result = runner .invoke (
50
50
cli .vcztools_main ,
51
51
f"view --no-version { vcz_path } -o { output_path } " ,
@@ -56,7 +56,7 @@ def test_view_good_path(self, tmp_path, vcz_path):
56
56
assert output_path .exists ()
57
57
58
58
def test_view_write_directory (self , tmp_path , vcz_path ):
59
- runner = ct .CliRunner (mix_stderr = False )
59
+ runner = ct .CliRunner ()
60
60
result = runner .invoke (
61
61
cli .vcztools_main ,
62
62
f"view --no-version { vcz_path } -o { tmp_path } " ,
@@ -67,7 +67,7 @@ def test_view_write_directory(self, tmp_path, vcz_path):
67
67
assert "Is a directory" in result .stderr
68
68
69
69
def test_view_write_pipe (self , tmp_path , vcz_path ):
70
- runner = ct .CliRunner (mix_stderr = False )
70
+ runner = ct .CliRunner ()
71
71
result = runner .invoke (
72
72
cli .vcztools_main ,
73
73
f"view --no-version { vcz_path } -o { tmp_path } " ,
@@ -104,7 +104,7 @@ def test_broken_pipe(mocked_dup2, mocked_exit, tmp_path):
104
104
105
105
class TestQuery :
106
106
def test_format_required (self , vcz_path ):
107
- runner = ct .CliRunner (mix_stderr = False )
107
+ runner = ct .CliRunner ()
108
108
result = runner .invoke (
109
109
cli .vcztools_main ,
110
110
f"query { vcz_path } " ,
@@ -115,7 +115,7 @@ def test_format_required(self, vcz_path):
115
115
assert len (result .stderr ) > 0
116
116
117
117
def test_path_required (self ):
118
- runner = ct .CliRunner (mix_stderr = False )
118
+ runner = ct .CliRunner ()
119
119
result = runner .invoke (
120
120
cli .vcztools_main ,
121
121
"query --format=POS " ,
@@ -152,7 +152,7 @@ def test_nrecords(self, vcz_path):
152
152
assert list (result .splitlines ()) == ["9" ]
153
153
154
154
def test_stats_and_nrecords (self , vcz_path ):
155
- runner = ct .CliRunner (mix_stderr = False )
155
+ runner = ct .CliRunner ()
156
156
result = runner .invoke (
157
157
cli .vcztools_main ,
158
158
f"index -ns { vcz_path } " ,
@@ -164,7 +164,7 @@ def test_stats_and_nrecords(self, vcz_path):
164
164
assert "Expected only one of --stats or --nrecords options" in result .stderr
165
165
166
166
def test_no_stats_or_nrecords (self , vcz_path ):
167
- runner = ct .CliRunner (mix_stderr = False )
167
+ runner = ct .CliRunner ()
168
168
result = runner .invoke (
169
169
cli .vcztools_main ,
170
170
f"index { vcz_path } " ,
@@ -177,18 +177,18 @@ def test_no_stats_or_nrecords(self, vcz_path):
177
177
178
178
179
179
def test_top_level ():
180
- runner = ct .CliRunner (mix_stderr = False )
180
+ runner = ct .CliRunner ()
181
181
result = runner .invoke (
182
182
cli .vcztools_main ,
183
183
catch_exceptions = False ,
184
184
)
185
- assert result .exit_code = = 0
186
- assert len (result .stdout ) > 0
187
- assert len (result .stderr ) == 0
185
+ assert result .exit_code ! = 0
186
+ assert len (result .stdout ) == 0
187
+ assert len (result .stderr ) > 0
188
188
189
189
190
190
def test_version ():
191
- runner = ct .CliRunner (mix_stderr = False )
191
+ runner = ct .CliRunner ()
192
192
result = runner .invoke (cli .vcztools_main , ["--version" ], catch_exceptions = False )
193
193
s = f"version { provenance .__version__ } \n "
194
194
assert result .stdout .endswith (s )
0 commit comments