Skip to content

Commit

Permalink
Test also order of dimensions of pressure
Browse files Browse the repository at this point in the history
  • Loading branch information
blychs committed Aug 30, 2024
1 parent 34ad51c commit 91ab75b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_tempo_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ def test_open_dataset(test_file_path):
assert set(ds) == {vn}
assert set(ds.attrs) == {"granule_number", "reference_time_string", "scan_num"}

with pytest.warns(UserWarning):
with pytest.warns(
UserWarning,
match=(
"Calculating pressure in TEMPO data requires surface_pressure. "
+ "Adding surface_pressure to output variables"
),
):
ds2 = open_dataset(
test_file_path,
{vn: {}, "main_data_quality_flag": {"quality_flag_max": 0}, "pressure": {}},
Expand Down

0 comments on commit 91ab75b

Please sign in to comment.