This page tracks the implementation status of RFC-215 and RFC-229, which cover unit testing conventions in Python. As you work on a package, you can claim it in the table below. Once the package has been migrated on master, you can check it off. If your package isn't listed here, please add it to the table.
This RFC states that Python unit test modules should not be executable (i.e. "./test_mymodule.py" shouldn't run, but of course "python test_mymodule.py" should run). To implement this RFC:
This RFC states that Python unit test modules should be named with a "test_" prefix to enable automatic discovery by pytest. For example, "tests/testMyModule.py" should be renamed to "tests/test_myModule.py."
This is documented in the Python Unit Testing guide.
Status | Package | Developer | Ticket |
---|---|---|---|
afw | Krzysztof Findeisen | (remove hash-bang) (other changes) | |
base | Tim Jenness | ||
ci_hsc | No tests present | ||
coadd_chisquared | Krzysztof Findeisen | ||
coadd_utils | Krzysztof Findeisen | ||
ctrl_execute | |||
ctrl_orca | |||
ctrl_pool | No tests present | ||
ctrl_provenance | |||
ctrl_stats | |||
daf_base | Krzysztof Findeisen | ||
daf_fmt_mysql | No tests present | ||
daf_ingest | Krzysztof Findeisen | ||
daf_persistence | Unknown User (npease) | ||
display_ds9 | No tests present | ||
display_firefly | No tests present | ||
geom | |||
ip_diffim | |||
ip_isr | |||
jointcal | (already conforming) | ||
log | |||
meas_algorithms | DM-5922 | ||
meas_astrom | DM-5922 | ||
meas_base | Tim Jenness | ||
meas_deblender | |||
meas_extensions_astrometryNet | |||
meas_extensions_convolved | |||
meas_extensions_ngmix | |||
meas_extensions_photometryKron | |||
meas_extensions_simpleShape | |||
meas_modelfit | |||
meas_moaic | |||
obs_base | DM-5922 | ||
obs_cfht | DM-5922 | ||
obs_decam | DM-5922 | ||
obs_file | No tests present | ||
obs_lsstSim | DM-5922 | ||
obs_monocam | No tests present | ||
obs_sdss | DM-5922 | ||
obs_subaru | DM-5922 | ||
obs_test | DM-5922 | ||
pex_config | |||
pex_exceptions | |||
pex_logging | |||
pipe_base | |||
pipe_drivers | No tests present | ||
pipe_supertasks | |||
pipe_tasks | DM-5922 | ||
sconsUtils | |||
shapelet | Tim Jenness | ||
skymap | Krzysztof Findeisen | ||
sphgeom | Krzysztof Findeisen | ||
utils | Krzysztof Findeisen | ||
validate_drp | |||
verify |