@@ -27,27 +27,6 @@ def test_microhapulator_open():
2727 pass
2828
2929
30- # These parameters and the following two test functions are mostly just smoke tests to make sure
31- # the code doesn't go up in flames when data is written to stdout.
32- # @pytest.fixture(params=[
33- # ("diff", [data_file("prof/euramer-sim-gt.json"), data_file("prof/euramer-inf-gt.json")]),
34- # ("dist", [data_file("prof/euramer-sim-gt.json"), data_file("prof/euramer-inf-gt.json")]),
35- # ("sim", [data_file("pashtun-sim/tiny-panel-multidef-freq.tsv")]),
36- # ("unite", [data_file("prof/swedish-mom.json"), data_file("prof/swedish-dad.json")]),
37- # ])
38- # def stdout_regress_param(request):
39- # return request.param
40- #
41- #
42- # def test_regression_stdout(stdout_regress_param, capsys, tmp_path):
43- # command, infiles = stdout_regress_param
44- # main([command, *infiles, "-o", outfile])
45- # terminal = capsys.readouterr()
46- # assert terminal.out == ""
47- # main([command, *infiles])
48- # assert terminal.out != ""
49-
50-
5130@pytest .mark .parametrize (
5231 "command, infiles" ,
5332 [
@@ -57,7 +36,7 @@ def test_microhapulator_open():
5736 ("unite" , [data_file ("prof/swedish-mom.json" ), data_file ("prof/swedish-dad.json" )]),
5837 ],
5938)
60- def test_regression_output_file (command , infiles , capsys , tmp_path ):
39+ def test_regression_output_file_or_stdout (command , infiles , capsys , tmp_path ):
6140 # This is mostly just a smoke test to make sure the code doesn't go up in flames when data is
6241 # written to stdout.
6342 outfile = str (tmp_path / "output.data" )
0 commit comments