astro.test package¶
Subpackages¶
- astro.test.database package
- Submodules
- astro.test.database.DBOracle_test module
- astro.test.database.DBSelect_test module
- astro.test.database.DataObject_test module
- astro.test.database.Oracle_dependency_test module
- astro.test.database.aw_context_test module
- astro.test.database.aw_derivedclass_test module
- astro.test.database.aw_filebased_test module
- astro.test.database.aw_security_test module
- astro.test.database.aw_util_test module
- Module contents
- astro.test.filerecipes package
- Submodules
- astro.test.filerecipes.Bias_recipe_test module
- astro.test.filerecipes.Coadd_recipe_test module
- astro.test.filerecipes.Cold_Pixels_recipe_test module
- astro.test.filerecipes.Dark_Current_recipe_test module
- astro.test.filerecipes.Dome_Flat_recipe_test module
- astro.test.filerecipes.Fringe_Flat_recipe_test module
- astro.test.filerecipes.Gain_recipe_test module
- astro.test.filerecipes.Hot_Pixels_recipe_test module
- astro.test.filerecipes.Master_Flat_recipe_test module
- astro.test.filerecipes.Nightsky_Flat_recipe_test module
- astro.test.filerecipes.PSF_Anisotropy_recipe_test module
- astro.test.filerecipes.PhotCal_Extract_Resulttable_test module
- astro.test.filerecipes.PhotCal_Extract_Zeropoint_recipe_test module
- astro.test.filerecipes.PhotCal_Monitoring_recipe_test module
- astro.test.filerecipes.Quick_Check_recipe_test module
- astro.test.filerecipes.Read_Noise_recipe_test module
- astro.test.filerecipes.Reduce_recipe_test module
- astro.test.filerecipes.Twilight_Flat_recipe_test module
- Module contents
- astro.test.functional package
- Submodules
- astro.test.functional.Astrom_test module
- astro.test.functional.BaseFrame_test module
- astro.test.functional.BiasFrame_test module
- astro.test.functional.BoundingBox_test module
- astro.test.functional.CanonicalName_test module
- astro.test.functional.ColdPixelMap_test module
- astro.test.functional.ConcatenateSources_test module
- astro.test.functional.ConfigUpdaterFactory_test module
- astro.test.functional.ConfigUpdater_test module
- astro.test.functional.Config_test module
- astro.test.functional.CosmologicalDistance_test module
- astro.test.functional.DarkCurrent_test module
- astro.test.functional.DataObject_test module
- astro.test.functional.DomeFlatFrame_test module
- astro.test.functional.DotExport_test module
- astro.test.functional.FilterSources_test module
- astro.test.functional.HeaderTranslator_test module
- astro.test.functional.HotPixelMap_test module
- astro.test.functional.Imstat_test module
- astro.test.functional.Instrument_test module
- astro.test.functional.OBGenerator_test module
- astro.test.functional.PSFModel_test module
- astro.test.functional.Pars_test module
- astro.test.functional.PhotSkyBrightness_test module
- astro.test.functional.Polygon_test module
- astro.test.functional.ProcessTarget_test module
- astro.test.functional.RawFitsData_test module
- astro.test.functional.RawFrame_test module
- astro.test.functional.ReadNoise_test module
- astro.test.functional.SelectSources_test module
- astro.test.functional.SetRelationsSet_test module
- astro.test.functional.Sextractor_test module
- astro.test.functional.SourceCollectionOnTheFly_test module
- astro.test.functional.SourceCollection_test module
- astro.test.functional.SourceList_test module
- astro.test.functional.TableConverter_test module
- astro.test.functional.TwilightFlatFrame_test module
- astro.test.functional.darma_test module
- astro.test.functional.htm_test module
- astro.test.functional.htmsafe_test module
- astro.test.functional.import_everything_test module
- Module contents
- astro.test.omegacen package
- Submodules
- astro.test.omegacen.ACTooFewSources module
- astro.test.omegacen.AttributeCalculator_test module
- astro.test.omegacen.CatalogClasses_test module
- astro.test.omegacen.InlineNone_test module
- astro.test.omegacen.InspectFigure_test module
- astro.test.omegacen.KidsCatFigures_test module
- astro.test.omegacen.KidsCatProcessing_test module
- astro.test.omegacen.KidsCatTask_test module
- astro.test.omegacen.KidsCatWFI_test module
- astro.test.omegacen.KidsCat_test module
- astro.test.omegacen.OnTheFly_test module
- astro.test.omegacen.RelabelSources_test module
- astro.test.omegacen.SAMPQDV_test module
- astro.test.omegacen.SourceCollectionPropagation_test module
- astro.test.omegacen.SourceCollectionQueries_test module
- astro.test.omegacen.SourceCollection_loaddata_test module
- astro.test.omegacen.SourceCollection_test module
- astro.test.omegacen.SourceList_test module
- astro.test.omegacen.Two2DPhotAttributeCalculator_test module
- astro.test.omegacen.aw_sourcelistsources_test module
- astro.test.omegacen.sourceprogenitors_test module
- Module contents
- astro.test.processing package
- Submodules
- astro.test.processing.ApertureCorrectionAttributeCalculator_test module
- astro.test.processing.AstrometricCorrection_test module
- astro.test.processing.AstrometricParameters_test module
- astro.test.processing.AtmosphericExtinction_test module
- astro.test.processing.BPZAttributeCalculator_test module
- astro.test.processing.BaseFrame_test module
- astro.test.processing.BiasFrame_test module
- astro.test.processing.Catalog_test module
- astro.test.processing.Chip_test module
- astro.test.processing.ColdPixelMap_test module
- astro.test.processing.CosmicMap_test module
- astro.test.processing.CrossTalkCorrectedFrame_test module
- astro.test.processing.CrossTalk_test module
- astro.test.processing.DarkCurrent_test module
- astro.test.processing.DomeFlatFrame_test module
- astro.test.processing.ESOIDAttributeCalculator_test module
- astro.test.processing.ExtinctionAttributeCalculator_test module
- astro.test.processing.FringeFrame_test module
- astro.test.processing.GAaPAttributeCalculator_test module
- astro.test.processing.GainLinearity_test module
- astro.test.processing.GalFitModel_test module
- astro.test.processing.GalPhotModel_test module
- astro.test.processing.GaussianizedFrame_test module
- astro.test.processing.HotPixelMap_test module
- astro.test.processing.IlluminationCorrection_test module
- astro.test.processing.Ingest_test module
- astro.test.processing.LDAC_test module
- astro.test.processing.LinearityMap_test module
- astro.test.processing.MasterFlatFrame_test module
- astro.test.processing.NightSkyFlatFrame_test module
- astro.test.processing.PSFModel_test module
- astro.test.processing.PhotRefCatalog_test module
- astro.test.processing.PhotSrcCatalog_test module
- astro.test.processing.PhotometricReport_test module
- astro.test.processing.Photometrics_test module
- astro.test.processing.PixelMap_test module
- astro.test.processing.QuickCheckFrame_test module
- astro.test.processing.RawFrame_test module
- astro.test.processing.ReadNoise_test module
- astro.test.processing.ReducedScienceFrame_test module
- astro.test.processing.RegriddedFrame_test module
- astro.test.processing.SatelliteMap_test module
- astro.test.processing.SaturatedPixelMap_test module
- astro.test.processing.Sextractor_test module
- astro.test.processing.SourceCollection_test module
- astro.test.processing.SourceList_test module
- astro.test.processing.StellarLocusRegression_test module
- astro.test.processing.SubWinStat_test module
- astro.test.processing.Swarp_test module
- astro.test.processing.ThumbnailPlot_test module
- astro.test.processing.TinyTim_test module
- astro.test.processing.TwilightFlatFrame_test module
- astro.test.processing.WeightFrame_test module
- astro.test.processing.dataserver_test module
- Module contents
- astro.test.recipes package
- Submodules
- astro.test.recipes.AssociateListTask_test module
- astro.test.recipes.AstrometricParametersTask_test module
- astro.test.recipes.BDSMTask_test module
- astro.test.recipes.BiasTask_test module
- astro.test.recipes.CoaddTask_test module
- astro.test.recipes.ColdPixelsTask_test module
- astro.test.recipes.DarkCurrentTask_test module
- astro.test.recipes.DomeFlatTask_test module
- astro.test.recipes.EuclidExportTask_test module
- astro.test.recipes.EuclidImportTask_test module
- astro.test.recipes.EuclidLIS_test module
- astro.test.recipes.FringeFlatTask_test module
- astro.test.recipes.GAstromSourceListTask_test module
- astro.test.recipes.GAstromTask_test module
- astro.test.recipes.GalFitTask_test module
- astro.test.recipes.GalPhotTask_test module
- astro.test.recipes.GaussianizedFrameTask_test module
- astro.test.recipes.HotPixelsTask_test module
- astro.test.recipes.IlluminationTask_test module
- astro.test.recipes.IlluminationVerifyTask_test module
- astro.test.recipes.ManMaskTask_test module
- astro.test.recipes.MasterFlatTask_test module
- astro.test.recipes.NightSkyFlatTask_test module
- astro.test.recipes.PSF_Anisotropy_test module
- astro.test.recipes.PhotcatTask_test module
- astro.test.recipes.PhotomTask_test module
- astro.test.recipes.Pipeline_test module
- astro.test.recipes.ReadNoiseTask_test module
- astro.test.recipes.ReduceTask_test module
- astro.test.recipes.RegridTask_test module
- astro.test.recipes.SatMaskTask_test module
- astro.test.recipes.ScampTask_test module
- astro.test.recipes.SourceListTask_test module
- astro.test.recipes.TwilightFlatTask_test module
- Module contents
- astro.test.services package
- Submodules
- astro.test.services.DataServerPerformanceTest module
- astro.test.services.DependencyCutout_test module
- astro.test.services.HtmlCalibrationEdit_test module
- astro.test.services.HtmlCalibrationGraph_test module
- astro.test.services.HtmlCalibrationQuality_test module
- astro.test.services.HtmlCalibrationTable_test module
- astro.test.services.HtmlComment_test module
- astro.test.services.HtmlDbView_test module
- astro.test.services.HtmlDir_test module
- astro.test.services.HtmlGmap_test module
- astro.test.services.HtmlGoWise_test module
- astro.test.services.HtmlProcess2_test module
- astro.test.services.HtmlTemplate_test module
- astro.test.services.HtmlWenss_test module
- astro.test.services.ImageServerPerformanceTest module
- astro.test.services.TestJobs module
- astro.test.services.imageserver_test module
- Module contents
Submodules¶
astro.test.dependency_test module¶
astro.test.dpu_unittestjob module¶
astro.test.dpu_unittests module¶
astro.test.firewall_test module¶
-
class
astro.test.firewall_test.
TestNetworkConnectionToDatabase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
-
setUp
()¶
-
test_node_connection
()¶
-
-
astro.test.firewall_test.
connect
(hostname, port, timeout)¶
astro.test.make_test_data module¶
astro.test.matplotlib_agg module¶
Import matplotlib with the Agg backend.
The Agg backend is useful when no screen is available or screen output is undesirable. For example when running tests.
Setting the matplotlib Agg backend must be done before importing pyplot, and therefore has to be done before importing e.g. InspectFigure:
import matplotlib matplotlib.use(‘Agg’) import InspectFigure
PEP8 wants module level imports before code execution, and will therefore complain about the above solution. This is not necessarily a problem but cannot be ignored locally in many editors, e.g. PyCharm.
Another solution is to switch the backend after importing:
import InspectFigure import matplotlib.pyplot matplotlib.pyplot.switch_backend(‘Agg’)
However, this is not supported in the default Astro-WISE matplotlib (1.0.0).
Therefore, the simplest solution that produces no PEP8 warnings is to use this module.
import matplotlib_agg import InspectFigure
astro.test.multicasetest module¶
-
class
astro.test.multicasetest.
TestMultipleCases
(methodName='runTest')¶ Bases:
unittest.case.TestCase
A class whose instances test multiple cases.
By default, the test code itself should be placed in a method named ‘runTest’.
If the fixture may be used for many test cases, create as many test methods as are needed. When instantiating such a TestCase subclass, specify in the constructor arguments the name of the test method that the instance is to execute.
Test authors should subclass TestCase for their own tests. Construction and deconstruction of the test’s environment (‘fixture’) can be implemented by overriding the ‘setUp’ and ‘tearDown’ methods respectively.
Instances should define an iterable atribute ‘cases’. The test methods will be called once for each item in self.cases. Each case may generate its own failure or error. Therefore each test method may generate multiple failures/errors. A test method is deemed to have passed succesfully if none of the cases genereated an error
The cases attribute can be generated at class definition time, at initialization time or in the setUp method
If it is necessary to override the __init__ method, the base class __init__ method must always be called. It is important that subclasses should not change the signature of their __init__ method, since instances of the classes are instantiated automatically by parts of the framework in order to be run. Hence, the __init__ method should not be changed to pass a list of cases to the instance
-
cases
= None¶
-
astro.test.regression_test module¶
astro.test.startup_test module¶
astro.test.testpath module¶
Module contents¶
Procedures to test the functionality and integrity of the software
This packag contains packages/modules and a few scripts to be used from the command-line.
Package/Module | Provided functionality¶
- multicasetest | Module containing framework for handling multiple test cases
- that differ only in a single aspect.
functional | Package containing all functional tests. processing | Package containing all processing tests. recipes | Package containing all recipes tests. filerecipes | ? services | ? database | ? omegacen | Tests that rely on the OmegaCEN infrastructure specifics. ——————————————————————————–
Additionally the following scripts are available in the astro/test directory :
dependency_test.py - Verifies the existence of required packages. regression_test.py - Runs all functional, processing and/or recipes tests. make_test_data.py - Produces test data.