Exemplo n.º 1
0
    def setUpClass(cls):
        """
        Set up tests.

        We read CMIP5Info once to keep testing times manageable
        """
        cls.variables_info = CMIP3Info('cmip3', CustomInfo(), strict=True)
Exemplo n.º 2
0
 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', 'cmip3')
     cmor_tables_path = os.path.abspath(cmor_tables_path)
     CMIP3Info(cmor_tables_path, None, True)