From a2d7a3ff6c6e8c9dacc8a2a29b13a8251f3f4be3 Mon Sep 17 00:00:00 2001 From: Angeline Burrell Date: Tue, 12 Mar 2024 11:18:08 -0400 Subject: [PATCH] DOC: add TODO statements Added TODO statements for new issues. Co-authored-by: Russell Stoneback --- pysatMadrigal/tests/test_methods_general.py | 2 ++ pysatMadrigal/tests/test_methods_gnss.py | 1 + 2 files changed, 3 insertions(+) diff --git a/pysatMadrigal/tests/test_methods_general.py b/pysatMadrigal/tests/test_methods_general.py index 500346a..2710a5e 100644 --- a/pysatMadrigal/tests/test_methods_general.py +++ b/pysatMadrigal/tests/test_methods_general.py @@ -60,6 +60,7 @@ def test_sort_file_format(self, caplog): ['hdf5', 'netCDF4', 'simple']) # Evaluate the logger warning + # TODO(#101) Use pysat warnings test assert len(caplog.records) == 1, "unexpected number of warnings" assert caplog.records[0].levelname == "WARNING" assert caplog.records[0].message.find( @@ -357,6 +358,7 @@ def test_get_remote_filenames_bad_date_array(self): "unknown date_array supplied", input_kwargs=self.kwargs) return + # (TODO #102) Expand testing of pandas to xarray method below def test_convert_pandas_to_xarray_bad_data_vars(self): """Test raises ValueError for unexpected date_array input.""" self.kwargs = [{('time', ): ['bad_var']}, pds.DataFrame([0]), diff --git a/pysatMadrigal/tests/test_methods_gnss.py b/pysatMadrigal/tests/test_methods_gnss.py index 6338974..432d732 100644 --- a/pysatMadrigal/tests/test_methods_gnss.py +++ b/pysatMadrigal/tests/test_methods_gnss.py @@ -62,6 +62,7 @@ def test_bad_file_type_warning(self, caplog): gnss.load_los(self.bad_fnames, "site", "zzon") # Test the logger warning + # TODO(#101) Use pysat eval warnings assert len(caplog.records) == 2, "unexpected number of warnings" for record in caplog.records: