Skip to content

Commit

Permalink
Update test_table.py
Browse files Browse the repository at this point in the history
Adding a test for the new custom cmor table "ch4s"
  • Loading branch information
hb326 authored Aug 10, 2023
1 parent f37e185 commit 03be702
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/integration/cmor/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 03be702

Please sign in to comment.