From 28fb6c96547cc0d359d7bcbd5e2f6b8153b577ab Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:25:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- gpm/tests/test_bucket/test_partitioning.py | 2 +- gpm/tests/test_io/test_products.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gpm/tests/test_bucket/test_partitioning.py b/gpm/tests/test_bucket/test_partitioning.py index 2f6c628e..7b18bb6f 100644 --- a/gpm/tests/test_bucket/test_partitioning.py +++ b/gpm/tests/test_bucket/test_partitioning.py @@ -1180,7 +1180,7 @@ def test_justified_label_xy(self): def test_justified_labels_single_level(self): """Test labels justification of single-level 2D TilePartitioning.""" - size = (10, 10) # + size = (10, 10) extent = [-180, 180, -90, 90] n_levels = 1 origin = "bottom" diff --git a/gpm/tests/test_io/test_products.py b/gpm/tests/test_io/test_products.py index 54d2cc92..64123904 100644 --- a/gpm/tests/test_io/test_products.py +++ b/gpm/tests/test_io/test_products.py @@ -176,18 +176,18 @@ def test_get_sensor_satellite_names(): }, } - assert ["SSMIS"] == _get_sensor_satellite_names(info_dict, key="sensor", combine_with=None) - assert ["F18"] == _get_sensor_satellite_names(info_dict, key="satellite", combine_with=None) - assert ["SSMIS-F18"] == _get_sensor_satellite_names( + assert _get_sensor_satellite_names(info_dict, key="sensor", combine_with=None) == ["SSMIS"] + assert _get_sensor_satellite_names(info_dict, key="satellite", combine_with=None) == ["F18"] + assert _get_sensor_satellite_names( info_dict, key="satellite", combine_with="sensor", - ) - assert ["SSMIS-F18"] == _get_sensor_satellite_names( + ) == ["SSMIS-F18"] + assert _get_sensor_satellite_names( info_dict, key="sensor", combine_with="satellite", - ) + ) == ["SSMIS-F18"] @pytest.mark.parametrize("full", [True, False])