Skip to content

Commit

Permalink
Update test_pltspatial.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fjornelas authored Sep 18, 2024
1 parent 8d0b638 commit 17febed
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/test_pltspatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def setup_params():
'dist_range_list': None
}

@patch('hvspatialpy.pd.read_csv')
def test_update_correlations(mock_read_csv, setup_params):
"""Test the update_correlations function."""
# Mock read_csv return value
Expand Down Expand Up @@ -95,7 +94,6 @@ def test_update_dataframe():
assert f'freq_int_{i}_min' in df.columns
assert f'freq_int_{i}_max' in df.columns

@patch('plt.show')
def test_plot_intervals(mock_show):
"""Test the _plot_intervals function."""
fig, ax1 = plt.subplots()
Expand All @@ -111,8 +109,6 @@ def test_plot_intervals(mock_show):
# Check that plot functions are called
assert ax1.get_legend() is not None

@patch('plt.colorbar')
@patch('plt.gca')
def test_update_colorbar(mock_gca, mock_colorbar):
"""Test the _update_colorbar function."""
fig, ax = plt.subplots()
Expand All @@ -125,7 +121,6 @@ def test_update_colorbar(mock_gca, mock_colorbar):
# Check that colorbar was called with correct parameters
mock_colorbar.assert_called_once()

@patch('plt.show')
def test_plot_site_image(mock_show):
"""Test the _plot_site_image function."""
fig, ax2 = plt.subplots()
Expand Down

0 comments on commit 17febed

Please sign in to comment.