3333
3434def test_convert2csv_main (counts_txt_file , tmp_path , monkeypatch ):
3535 out = tmp_path / "out.csv"
36- monkeypatch .setattr (sys , "argv" , ["c2c" , "-i" , str (counts_txt_file ), "-o" , str (out )])
36+ monkeypatch .setattr (
37+ sys , "argv" , ["c2c" , "-i" , str (counts_txt_file ), "-o" , str (out )]
38+ )
3739 convert2csv_main ()
3840 assert out .exists ()
3941
@@ -96,9 +98,7 @@ def test_mpa_table_main(tmp_path, monkeypatch):
9698 a .write_text (_MPA_A )
9799 b .write_text (_MPA_B )
98100 out = tmp_path / "COMBINED.txt"
99- monkeypatch .setattr (
100- sys , "argv" , ["mt" , "-i" , str (a ), str (b ), "-o" , str (out )]
101- )
101+ monkeypatch .setattr (sys , "argv" , ["mt" , "-i" , str (a ), str (b ), "-o" , str (out )])
102102 mpa_table_main ()
103103 assert out .exists ()
104104
@@ -110,9 +110,7 @@ def test_mpa_table_main(tmp_path, monkeypatch):
110110
111111def test_transform2mpa_main_single (kreport_file , tmp_path , monkeypatch ):
112112 out = tmp_path / "out.MPA.TXT"
113- monkeypatch .setattr (
114- sys , "argv" , ["t2m" , "-r" , str (kreport_file ), "-o" , str (out )]
115- )
113+ monkeypatch .setattr (sys , "argv" , ["t2m" , "-r" , str (kreport_file ), "-o" , str (out )])
116114 transform2mpa_main ()
117115 assert out .exists ()
118116
@@ -139,7 +137,17 @@ def test_diversity_main_with_seed(counts_csv_file, tmp_path, monkeypatch):
139137 monkeypatch .setattr (
140138 sys ,
141139 "argv" ,
142- ["div" , "-i" , str (counts_csv_file ), "-o" , str (out_dir ), "-d" , "1000" , "-s" , "42" ],
140+ [
141+ "div" ,
142+ "-i" ,
143+ str (counts_csv_file ),
144+ "-o" ,
145+ str (out_dir ),
146+ "-d" ,
147+ "1000" ,
148+ "-s" ,
149+ "42" ,
150+ ],
143151 )
144152 diversity_main ()
145153 assert (out_dir / "alpha_div.csv" ).exists ()
@@ -148,7 +156,9 @@ def test_diversity_main_with_seed(counts_csv_file, tmp_path, monkeypatch):
148156def test_diversity_main_no_seed (counts_csv_file , tmp_path , monkeypatch ):
149157 out_dir = tmp_path / "div"
150158 monkeypatch .setattr (
151- sys , "argv" , ["div" , "-i" , str (counts_csv_file ), "-o" , str (out_dir ), "-d" , "1000" ]
159+ sys ,
160+ "argv" ,
161+ ["div" , "-i" , str (counts_csv_file ), "-o" , str (out_dir ), "-d" , "1000" ],
152162 )
153163 diversity_main ()
154164
0 commit comments