Skip to content

Commit

Permalink
Update test with fix for the key for the mockup bufr for lat/lon
Browse files Browse the repository at this point in the history
  • Loading branch information
YouvaEUMex committed Aug 2, 2023
1 parent 7148c6c commit 15f5e86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions satpy/tests/reader_tests/test_seviri_l2_bufr.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@

DATASET_INFO_LAT = {
'name': 'latitude',
'key': 'latitude',
'key': '#1#latitude',
'fill_value': -1.e+100
}

DATASET_INFO_LON = {
'name': 'longitude',
'key': 'longitude',
'key': '#1#longitude',
'fill_value': -1.e+100
}

Expand Down Expand Up @@ -128,10 +128,10 @@ def __init__(self, filename, with_adef=False, rect_lon='default'):
# write the bufr test data twice as we want to read in and then concatenate the data in the reader
# 55 id corresponds to METEOSAT 8`
ec.codes_set(self.buf1, 'satelliteIdentifier', 56)
ec.codes_set_array(self.buf1, 'latitude', LAT)
ec.codes_set_array(self.buf1, 'latitude', LAT)
ec.codes_set_array(self.buf1, 'longitude', LON)
ec.codes_set_array(self.buf1, 'longitude', LON)
ec.codes_set_array(self.buf1, '#1#latitude', LAT)
ec.codes_set_array(self.buf1, '#1#latitude', LAT)
ec.codes_set_array(self.buf1, '#1#longitude', LON)
ec.codes_set_array(self.buf1, '#1#longitude', LON)

Check warning on line 134 in satpy/tests/reader_tests/test_seviri_l2_bufr.py

View check run for this annotation

Codecov / codecov/patch

satpy/tests/reader_tests/test_seviri_l2_bufr.py#L131-L134

Added lines #L131 - L134 were not covered by tests
ec.codes_set_array(self.buf1, '#1#brightnessTemperature', DATA)
ec.codes_set_array(self.buf1, '#1#brightnessTemperature', DATA)

Expand Down

0 comments on commit 15f5e86

Please sign in to comment.