Uploaded image for project: 'Apache Open Climate Workbench (Retired)'
  1. Apache Open Climate Workbench (Retired)
  2. CLIMATE-887

test_get_netcdf_variable_names setUp to run only once for the test case

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.3.0
    • tests
    • None

    Description

      Right now the particular test

      test_get_netcdf_variable_names

      takes forever and a day due to the use of urlretrieve within the class setUp function. This retrieves the same netCDF file from zipper.jpl.nasa.gov on every test within the test_get_netcdf_variable_names function which is a waste of time and resources. If anything, I would be +1 for having a small netCDF file contained within the OCW test directory. This would speed up the tests much more.

      https://github.com/apache/climate/blob/master/ocw/tests/test_local.py#L236-L274

      Attachments

        Issue Links

          Activity

            People

              justin.julian@earthtech.ca Justin Julian
              lewismc Lewis John McGibbney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: