From 03be7021dcf45ca3de73eab1dd6ec682a7d9c76b Mon Sep 17 00:00:00 2001 From: Birgit Hassler <33543691+hb326@users.noreply.github.com> Date: Thu, 10 Aug 2023 10:55:59 +0200 Subject: [PATCH] Update test_table.py Adding a test for the new custom cmor table "ch4s" --- tests/integration/cmor/test_table.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/integration/cmor/test_table.py b/tests/integration/cmor/test_table.py index f3845633ae..7b25b8d719 100644 --- a/tests/integration/cmor/test_table.py +++ b/tests/integration/cmor/test_table.py @@ -476,3 +476,12 @@ def test_get_variable_tasaga(self): self.assertEqual(var.long_name, 'Global-mean Near-Surface Air Temperature Anomaly') self.assertEqual(var.units, 'K') + + def test_get_variable_ch4s(self): + """Get tas variable.""" + CustomInfo() + var = self.variables_info.get_variable('Amon', 'ch4s') + self.assertEqual(var.short_name, 'ch4s') + self.assertEqual(var.long_name, + 'Atmosphere CH4 surface') + self.assertEqual(var.units, '1e-09')