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:

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

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

(remove hash-bang) (other changes)

  •  
baseTim Jenness

  •  

ci_hsc


No tests present
  •  
coadd_chisquaredKrzysztof Findeisen

  •  
coadd_utilsKrzysztof Findeisen

  •  
ctrl_execute

  •  
ctrl_orca

  •  
ctrl_pool
No tests present
  •  
ctrl_provenance

  •  
ctrl_stats

  •  
daf_baseKrzysztof Findeisen

  •  
daf_fmt_mysql

No tests present

  •  
daf_ingestKrzysztof Findeisen

  •  
daf_persistenceUnknown User (npease)

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

  •  
ip_diffim

  •  
ip_isr

  •  
jointcal
(already conforming)
  •  
log

  •  
meas_algorithmsDM-5922
  •  
meas_astromDM-5922
  •  
meas_baseTim Jenness

  •  
meas_deblender

  •  
meas_extensions_astrometryNet

  •  

meas_extensions_convolved

  •  
meas_extensions_ngmix

  •  
meas_extensions_photometryKron

  •  
meas_extensions_simpleShape

  •  
meas_modelfit

  •  
meas_moaic

  •  
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

  •  
pex_logging

  •  
pipe_base

  •  
pipe_drivers


No tests present

  •  
pipe_supertasks

  •  
pipe_tasksDM-5922
  •  
sconsUtils

  •  
shapeletTim Jenness

  •  
skymapKrzysztof Findeisen

  •  
sphgeomKrzysztof Findeisen

  •  
utilsKrzysztof Findeisen

  •  
validate_drp

  •  
verify