@@ -92,16 +92,8 @@ def test_karyotyping(inversion):
9292 )
9393
9494
95- @pytest .fixture (scope = "module" )
96- def af1 ():
97- return Af1 (
98- "simplecache::gs://vo_afun_release_master_us_central1/" ,
99- simplecache = dict (cache_storage = "gcs_cache" ),
100- debug = True ,
101- )
102-
103-
104- def test_plot_haplotype_network_string_direct (af1 , mocker ):
95+ def test_plot_haplotype_network_string_direct (mocker ):
96+ af1 = setup_af1 (debug = True )
10597 mocker .patch ("dash.Dash.run" )
10698 mock_mjn = mocker .patch ("malariagen_data.anopheles.mjn_graph" )
10799 mock_mjn .return_value = ([{"data" : {"id" : "n1" }}], [])
@@ -122,7 +114,8 @@ def test_plot_haplotype_network_string_direct(af1, mocker):
122114 assert call_args ["ht_color_counts" ] is not None
123115
124116
125- def test_plot_haplotype_network_string_cohort (af1 , mocker ):
117+ def test_plot_haplotype_network_string_cohort (mocker ):
118+ af1 = setup_af1 (debug = True )
126119 mocker .patch ("dash.Dash.run" )
127120 mock_mjn = mocker .patch ("malariagen_data.anopheles.mjn_graph" )
128121 mock_mjn .return_value = ([{"data" : {"id" : "n1" }}], [])
@@ -143,7 +136,8 @@ def test_plot_haplotype_network_string_cohort(af1, mocker):
143136 assert call_args ["ht_color_counts" ] is not None
144137
145138
146- def test_plot_haplotype_network_mapping (af1 , mocker ):
139+ def test_plot_haplotype_network_mapping (mocker ):
140+ af1 = setup_af1 (debug = True )
147141 mocker .patch ("dash.Dash.run" )
148142 mock_mjn = mocker .patch ("malariagen_data.anopheles.mjn_graph" )
149143 mock_mjn .return_value = ([{"data" : {"id" : "n1" }}], [])
@@ -165,7 +159,8 @@ def test_plot_haplotype_network_mapping(af1, mocker):
165159 assert call_args ["ht_color_counts" ] is not None
166160
167161
168- def test_plot_haplotype_network_none (af1 , mocker ):
162+ def test_plot_haplotype_network_none (mocker ):
163+ af1 = setup_af1 (debug = True )
169164 mocker .patch ("dash.Dash.run" )
170165 mock_mjn = mocker .patch ("malariagen_data.anopheles.mjn_graph" )
171166 mock_mjn .return_value = ([{"data" : {"id" : "n1" }}], [])
0 commit comments