- New code must be python2 and python3 compatible
- Use logging.debug rather than print and also use its string expansion.
print "Debug: %s." % (message) # avoid logging.debug("Debug: %s", message) # use (python3 compatible, allows filtering, faster)
- Exclusively use
pytest
for testing andpytest.mark
rather thannose.attr
to annotate unit tests
db ... test case requires a database connection
new ... indicates new test case (run with 'nosetest ./mypackage.py -a new')
remote ... test case requires remote resources (e.g. Web Services, ...)
slow ... slow test case