Skip to content

Commit

Permalink
fix: Erase the resolution arguments into the test_fci_l1c_nc.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementLaplace committed Apr 10, 2024
1 parent d01d4a6 commit f51d58e
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions satpy/tests/reader_tests/test_fci_l1c_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def test_load_counts(self, reader_configs, fh_param,

@pytest.mark.parametrize("channel",list_total_channel)
@pytest.mark.parametrize("resolution",list_resolution)
def test_load_counts_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,resolution):
def test_load_counts_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel):
"""Test loading with counts for AF files."""
expected_res_n = 1
fh_param = FakeFCIFileHandlerAF_fixture
Expand Down Expand Up @@ -621,7 +621,7 @@ def test_load_radiance(self, reader_configs, fh_param,

@pytest.mark.parametrize("channel",list_total_channel)
@pytest.mark.parametrize("resolution",list_resolution)
def test_load_radiance_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,resolution):
def test_load_radiance_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel):
"""Test loading with radiance for AF files."""
expected_res_n = 1
fh_param = FakeFCIFileHandlerAF_fixture
Expand Down Expand Up @@ -663,7 +663,7 @@ def test_load_reflectance(self, reader_configs, fh_param,

@pytest.mark.parametrize("channel",list_channel_solar)
@pytest.mark.parametrize("resolution",list_resolution)
def test_load_reflectance_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,resolution):
def test_load_reflectance_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel):
"""Test loading with reflectance for AF files."""
expected_res_n = 1
fh_param = FakeFCIFileHandlerAF_fixture
Expand Down Expand Up @@ -708,15 +708,14 @@ def test_load_bt(self, reader_configs, caplog, fh_param,

@pytest.mark.parametrize("channel",list_channel_terran)
@pytest.mark.parametrize("resolution",list_resolution)
def test_load_bt_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,resolution,caplog):
def test_load_bt_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,caplog):
"""Test loading with brightness_temperature for AF files."""
expected_res_n = 1
fh_param = FakeFCIFileHandlerAF_fixture
reader = _get_reader_with_filehandlers(fh_param["filenames"], reader_configs)
type_ter = self._get_type_ter_AF(channel)
calibration = "brightness_temperature"
with caplog.at_level(logging.WARNING):
res = reader.load([make_dataid(name=name, calibration="brightness_temperature")
for name in fh_param["channels"][type_ter]], pad_data=False)
res = self._get_res_AF(channel,fh_param,calibration,reader_configs)
assert caplog.text == ""
assert expected_res_n == len(res)
for ch, grid_type in zip(fh_param["channels"][type_ter],
Expand Down Expand Up @@ -757,7 +756,7 @@ def test_orbital_parameters_attr(self, reader_configs, fh_param):

@pytest.mark.parametrize("channel",list_total_channel)
@pytest.mark.parametrize("resolution",list_resolution)
def test_orbital_parameters_attr_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,resolution):
def test_orbital_parameters_attr_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel):
"""Test the orbital parametters for AF data."""
expected_res_n = 1
fh_param = FakeFCIFileHandlerAF_fixture
Expand Down Expand Up @@ -827,7 +826,7 @@ def test_load_index_map(self, reader_configs, fh_param, expected_res_n):

@pytest.mark.parametrize("channel",list_total_channel)
@pytest.mark.parametrize("resolution",list_resolution)
def test_load_index_map_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,resolution):
def test_load_index_map_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel):
"""Test loading with index_map for AF files."""
expected_res_n = 1
fh_param = FakeFCIFileHandlerAF_fixture
Expand Down Expand Up @@ -878,7 +877,7 @@ def test_load_quality_only(self, reader_configs, fh_param, expected_res_n):

@pytest.mark.parametrize("channel",list_total_channel)
@pytest.mark.parametrize("resolution",list_resolution)
def test_load_quality_only_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,resolution):
def test_load_quality_only_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel):
"""Test loading with quality works for AF files."""
expected_res_n = 1
fh_param = FakeFCIFileHandlerAF_fixture
Expand Down Expand Up @@ -961,7 +960,7 @@ def test_excs(self, reader_configs, fh_param):

@pytest.mark.parametrize("channel",list_total_channel)
@pytest.mark.parametrize("resolution",list_resolution)
def test_excs_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel,resolution):
def test_excs_af(self,FakeFCIFileHandlerAF_fixture,reader_configs,channel):
"""Test exceptions for AF files."""
fh_param = FakeFCIFileHandlerAF_fixture
reader = _get_reader_with_filehandlers(fh_param["filenames"], reader_configs)
Expand Down

0 comments on commit f51d58e

Please sign in to comment.