You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

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

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



  •  
base

  •  

ci_hsc



  •  
coadd_chisquared

  •  
coadd_utils

  •  
ctrl_execute

  •  
ctrl_orca

  •  
ctrl_pool

  •  
ctrl_provenance

  •  
ctrl_stats

  •  
daf_base

  •  
daf_fmt_mysql

  •  
daf_ingest

  •  
daf_persistence

  •  
display_ds9

  •  
display_firefly

  •  
geom

  •  
ip_diffim

  •  
ip_isr

  •  
jointcal

  •  
log

  •  
meas_algorithms

  •  
meas_astrom

  •  
meas_base

  •  
meas_deblender

  •  
meas_extensions_astrometryNet

  •  

meas_extensions_convolved



  •  
meas_extensions_ngmix

  •  
meas_extensions_photometryKron

  •  
meas_extensions_simpleShape

  •  
meas_modelfit

  •  
meas_moaic

  •  
obs_base

  •  
obs_cfht

  •  
obs_decam

  •  
obs_lsstSim

  •  
obs_monocam

  •  
obs_sdss

  •  
obs_subaru

  •  
obs_test

  •  
pex_config

  •  
pex_exceptions

  •  
pex_logging

  •  
pipe_base

  •  
pipe_drivers

  •  
pipe_supertasks

  •  
pipe_tasks

  •  
sconsUtils

  •  
shapelet

  •  
skymap

  •  
sphgeom

  •  
utils

  •  
validate_drp

  •  
verifyJonathan Sick
  • No labels