Skip to content

Commit

Permalink
clean up cold pool testing documentation to be consistent with functi…
Browse files Browse the repository at this point in the history
…onality
  • Loading branch information
Kevin Counts committed May 6, 2024
1 parent 9521265 commit ced4342
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/test_mom6_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
For local testing:
`pytest --location=local`
For coldpool testing:
`pytest --data=<GLORYS data file> --static=<GLORYS static file>
The location option is implemented due to the conftest.py
The data and static options are also implemented in conftest.py. Default file path needed
"""
import pytest
Expand Down Expand Up @@ -65,10 +61,13 @@ def test_cold_pool_index(location):
Parameters
----------
data_file : str
Data file used to test cold pool index
static_data_file : str
Static data file with depth information
location : str
The location of where the data is extracted.
Raises
------
ValueError
The location input in string does not exist.
"""
if location == 'local':
ds_mask = MOM6Static.get_cpi_mask('masks/')
Expand Down

0 comments on commit ced4342

Please sign in to comment.