@@ -150,9 +150,7 @@ def test_mutation_to_dict_integration(self) -> None:
150150class TestVisualizationIntegration :
151151 """Integration tests for visualization workflow."""
152152
153- def test_plot_single_residue_with_data (
154- self , sample_frustration_df : pd .DataFrame
155- ) -> None :
153+ def test_plot_single_residue_with_data (self , sample_frustration_df : pd .DataFrame ) -> None :
156154 """Test single residue plot with sample data."""
157155 from frustrampnn .visualization import plot_single_residue
158156
@@ -162,19 +160,15 @@ def test_plot_single_residue_with_data(
162160 axes = fig .get_axes ()
163161 assert len (axes ) == 1
164162
165- def test_plot_heatmap_with_data (
166- self , sample_frustration_df : pd .DataFrame
167- ) -> None :
163+ def test_plot_heatmap_with_data (self , sample_frustration_df : pd .DataFrame ) -> None :
168164 """Test heatmap plot with sample data."""
169165 from frustrampnn .visualization import plot_frustration_heatmap
170166
171167 fig = plot_frustration_heatmap (sample_frustration_df , chain = "A" )
172168
173169 assert fig is not None
174170
175- def test_plot_single_residue_plotly (
176- self , sample_frustration_df : pd .DataFrame
177- ) -> None :
171+ def test_plot_single_residue_plotly (self , sample_frustration_df : pd .DataFrame ) -> None :
178172 """Test plotly single residue plot."""
179173 from frustrampnn .visualization import plot_single_residue_plotly
180174
@@ -183,9 +177,7 @@ def test_plot_single_residue_plotly(
183177 assert fig is not None
184178 assert len (fig .data ) > 0
185179
186- def test_plot_heatmap_plotly (
187- self , sample_frustration_df : pd .DataFrame
188- ) -> None :
180+ def test_plot_heatmap_plotly (self , sample_frustration_df : pd .DataFrame ) -> None :
189181 """Test plotly heatmap plot."""
190182 from frustrampnn .visualization import plot_frustration_heatmap_plotly
191183
@@ -408,12 +400,9 @@ def test_invalid_mutation_string_error(self) -> None:
408400 with pytest .raises (ValueError , match = "Invalid mutation format" ):
409401 parse_mutation_string ("invalid" )
410402
411- def test_invalid_position_in_plot_error (
412- self , sample_frustration_df : pd .DataFrame
413- ) -> None :
403+ def test_invalid_position_in_plot_error (self , sample_frustration_df : pd .DataFrame ) -> None :
414404 """Test error handling for invalid position in plot."""
415405 from frustrampnn .visualization import plot_single_residue
416406
417407 with pytest .raises (ValueError , match = "No data found" ):
418408 plot_single_residue (sample_frustration_df , position = 999 , chain = "A" )
419-
0 commit comments