From 40ce6b03f77757a51a60a30d6ae04a28c8b8a2b7 Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Wed, 16 Oct 2024 05:08:44 +0000 Subject: [PATCH] use properties --- tests/test_variables.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_variables.py b/tests/test_variables.py index a5c8302..6dd30cf 100644 --- a/tests/test_variables.py +++ b/tests/test_variables.py @@ -11,13 +11,13 @@ def test_variables(): z500 = Variable.from_dict("z500", {"mars": {"param": "z", "levtype": "pl", "levelist": 500}}) - assert z500.is_pressure_level() - assert z500.level() == 500 + assert z500.is_pressure_level + assert z500.level == 500 msl = Variable.from_dict("msl", {"mars": {"param": "msl", "levtype": "sfc"}}) - assert not msl.is_pressure_level() - assert msl.level() is None + assert not msl.is_pressure_level + assert msl.level is None if __name__ == "__main__":