Skip to content

Commit

Permalink
Update test_hvcorr.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fjornelas authored Sep 18, 2024
1 parent b927035 commit f11a81e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_hvcorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def test_dist_from_vert_arr():
loc_df = pd.DataFrame(test_data)

# Mock the `_get_locations` function
with patch('your_module._get_locations') as mock_get_locations:
with patch('hvspatialpy.hvcorr._get_locations') as mock_get_locations:
mock_get_locations.return_value = loc_df

# Mock the `_compute_dist` function
with patch('your_module._compute_dist') as mock_compute_dist:
with patch('hvspatialpy.hvcorr._compute_dist') as mock_compute_dist:
mock_compute_dist.return_value = 1000

# Call the function under test
Expand Down Expand Up @@ -121,7 +121,7 @@ def test_create_frequency_dataframe():
expected_df = pd.DataFrame(expected_data)

# Mock the `create_frequency_dataframe` function
with patch('your_module.create_frequency_dataframe') as mock_create_frequency_dataframe:
with patch('hvspatialpy.hvcorr.create_frequency_dataframe') as mock_create_frequency_dataframe:
mock_create_frequency_dataframe.return_value = expected_df

# Call the function under test
Expand Down Expand Up @@ -158,7 +158,7 @@ def test_compute_correlations():
expected_df = pd.DataFrame(expected_data)

# Mock the `compute_correlations` function
with patch('your_module.compute_correlations') as mock_compute_correlations:
with patch('hvspatialpy.hvcorr.compute_correlations') as mock_compute_correlations:
mock_compute_correlations.return_value = expected_df

# Call the function under test
Expand Down

0 comments on commit f11a81e

Please sign in to comment.