コード例 #1
0
    def setUpClass(cls):
        """
        Set up tests.

        We read CMIP5Info once to keep testing times manageable
        """
        cls.variables_info = CMIP5Info('cmip5', CustomInfo(), strict=True)
コード例 #2
0
    def setUpClass(cls):
        """
        Set up tests.

        We read CORDEX once to keep testing times manageable
        """
        cls.variables_info = CMIP5Info('cordex', default=CustomInfo())
コード例 #3
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', 'cordex')
     cmor_tables_path = os.path.abspath(cmor_tables_path)
     CMIP5Info(cmor_tables_path)
コード例 #4
0
 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)