def setUpClass(cls): """ Set up tests. We read CMIP5Info once to keep testing times manageable """ cls.variables_info = CMIP5Info('cmip5', CustomInfo(), strict=True)
def setUpClass(cls): """ Set up tests. We read CORDEX once to keep testing times manageable """ cls.variables_info = CMIP5Info('cordex', default=CustomInfo())
def test_custom_tables_location(self): """Test constructor with custom tables location.""" cwd = os.path.dirname(os.path.realpath(__file__)) cmor_tables_path = os.path.join(cwd, '..', '..', '..', 'esmvalcore', 'cmor', 'tables', 'cordex') cmor_tables_path = os.path.abspath(cmor_tables_path) CMIP5Info(cmor_tables_path)
def test_custom_tables_location(self): """Test constructor with custom tables location.""" cmor_path = os.path.dirname(os.path.realpath(esmvalcore.cmor.__file__)) cmor_tables_path = os.path.join(cmor_path, 'tables', 'cordex') CMIP5Info(cmor_tables_path)