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.

RFC-215 - Getting issue details... STATUS

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:

  1. Remove the executable flag from Python test modules (e.g., "chmod -x ...").
  2. Remove the hash-bang line from Python test modules.

RFC-229 - Getting issue details... STATUS

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

StatusPackageDeveloperTicket
  •  

afw

Krzysztof Findeisen

DM-4639 - Getting issue details... STATUS (remove hash-bang) DM-10542 - Getting issue details... STATUS (other changes)

  •  
baseTim Jenness

DM-11514 - Getting issue details... STATUS

  •  

ci_hsc


No tests present
  •  
coadd_chisquaredKrzysztof Findeisen

DM-11585 - Getting issue details... STATUS

  •  
coadd_utilsKrzysztof Findeisen

DM-11585 - Getting issue details... STATUS

  •  
ctrl_execute

DM-11585 - Getting issue details... STATUS

  •  
ctrl_orca

DM-11585 - Getting issue details... STATUS

  •  
ctrl_pool
No tests present
  •  
ctrl_provenance

DM-11585 - Getting issue details... STATUS

  •  
ctrl_stats

DM-11585 - Getting issue details... STATUS

  •  
daf_baseKrzysztof Findeisen

DM-11585 - Getting issue details... STATUS

  •  
daf_fmt_mysql

No tests present

  •  
daf_ingestKrzysztof Findeisen

DM-11585 - Getting issue details... STATUS

  •  
daf_persistenceUnknown User (npease)

DM-10972 - Getting issue details... STATUS

  •  
display_ds9
No tests present
  •  
display_firefly
No tests present
  •  
geom

DM-11585 - Getting issue details... STATUS

  •  
ip_diffim

DM-11585 - Getting issue details... STATUS

  •  
ip_isr

DM-11585 - Getting issue details... STATUS

  •  
jointcal
(already conforming)
  •  
log

DM-10871 - Getting issue details... STATUS

  •  
meas_algorithmsDM-5922
  •  
meas_astromDM-5922
  •  
meas_baseTim Jenness

DM-11514 - Getting issue details... STATUS

  •  
meas_deblender

DM-11585 - Getting issue details... STATUS

  •  
meas_extensions_astrometryNet

DM-11585 - Getting issue details... STATUS

  •  

meas_extensions_convolved

DM-11585 - Getting issue details... STATUS

  •  
meas_extensions_ngmix

DM-11585 - Getting issue details... STATUS

  •  
meas_extensions_photometryKron

DM-11585 - Getting issue details... STATUS

  •  
meas_extensions_simpleShape

DM-11585 - Getting issue details... STATUS

  •  
meas_modelfit

DM-11585 - Getting issue details... STATUS

  •  
meas_moaic

DM-11585 - Getting issue details... STATUS

  •  
obs_baseDM-5922
  •  
obs_cfhtDM-5922
  •  
obs_decamDM-5922
  •  
obs_file
No tests present
  •  
obs_lsstSimDM-5922
  •  
obs_monocam
No tests present
  •  
obs_sdssDM-5922
  •  
obs_subaruDM-5922
  •  
obs_testDM-5922
  •  
pex_config



  •  
pex_exceptions

DM-11585 - Getting issue details... STATUS

  •  
pex_logging

DM-11585 - Getting issue details... STATUS

  •  
pipe_base

DM-11585 - Getting issue details... STATUS

  •  
pipe_drivers


No tests present

  •  
pipe_supertasks

DM-10592 - Getting issue details... STATUS

  •  
pipe_tasksDM-5922
  •  
sconsUtils

  •  
shapeletTim Jenness

DM-7615 - Getting issue details... STATUS

  •  
skymapKrzysztof Findeisen

DM-11585 - Getting issue details... STATUS

  •  
sphgeomKrzysztof Findeisen

DM-11585 - Getting issue details... STATUS

  •  
utilsKrzysztof Findeisen

DM-11585 - Getting issue details... STATUS

  •  
validate_drp

DM-11585 - Getting issue details... STATUS

  •  
verify
  • No labels