Skip to content

Commit

Permalink
test_get_tide_predictions_valid_transect fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Feb 8, 2024
1 parent 8cd4f3a commit 7f3bf27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_shoreline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tide_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 7f3bf27

Please sign in to comment.