Coverage for tests/test_load_json.py : 94%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# # LSST Data Management System # Copyright 2012-2016 LSST Corporation. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <http://www.lsstcorp.org/LegalNotices/>. #
get_filter_name_from_job, load_json_output, plot_metrics, print_metrics)
"""Testing loading of JSON cache files."""
"bin")
root_dir=self.executable_dir, args=[self.jsonFile, "--noplot"], msg="CFHT Quick Test failed")
"""Can we load a Job from a JSON file?"""
# without throwing an error # Spot-check a few attributes
"""Do we correctly read the filterName from a Job object?"""
"""Does printing the metrics run without error using itself?
This is in essence half the big test. If we load a file do we get printed metrics? Next TODO is to actually check for the values printed. """
"""Does plotting the metrics run and produce the correct filenames?
This could be loosely seen as a test of the outputPrefix handling and thus DM-11410, it's a rather incomplete one because the chain of wrapping functions is different. """
'check_photometry.png', 'PA1.png', 'validate_drp.AM1_D_5_arcmin_17.0_21.5_mag.png', 'validate_drp.TE1_D_1_arcmin.png', 'validate_drp.TE2_D_5_arcmin.png'] # test with no output prefix.
# test that outputPrefix is prepended correctly.
lsst.utils.tests.init() unittest.main() |