From 7f3bf274cdc41313bb37aee6d62ab1e99d31313b Mon Sep 17 00:00:00 2001 From: Sharon Fitzpatrick Date: Thu, 8 Feb 2024 11:53:23 -0800 Subject: [PATCH] test_get_tide_predictions_valid_transect fix broken test --- tests/test_shoreline.py | 1 + tests/test_tide_correction.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_shoreline.py b/tests/test_shoreline.py index 92914d48..da5c29f6 100644 --- a/tests/test_shoreline.py +++ b/tests/test_shoreline.py @@ -233,6 +233,7 @@ def test_style_layer(): # # you can also mock some methods that depend on external data, like downloading from the internet +# this requires the use of the pytest-mock library which must be installed ( it is not as of 2/8/2024) # def test_download_shoreline(mocker): # mock_download = mocker.patch("coastseg.common.download_url", return_value=None) # shoreline = Shoreline() diff --git a/tests/test_tide_correction.py b/tests/test_tide_correction.py index 12f134d9..803a2b24 100644 --- a/tests/test_tide_correction.py +++ b/tests/test_tide_correction.py @@ -204,7 +204,7 @@ def test_get_tide_predictions(): assert (result['x'] == x).all(), "All 'x' values should be equal to input x" assert (result['y'] == y).all(), "All 'y' values should be equal to input y" -def test_get_tide_predictions_valid_transect(mocker): +def test_get_tide_predictions_valid_transect(): # Test data setup x, y = 1.0, 2.0 timeseries_df = pd.DataFrame({