Nick Coghlan <ncogh...@gmail.com> added the comment:

In my example, I needed a word to cover each entry in the collection of 
parameter tuples. 'case' fit the bill.

The reason I like the builder approach is that it means the simplest usage is 
to just create a list (or other iterable) of parameter tuples to be tested, 
then pass that list to the decorator factory. The sequential naming will then 
let you find the failing test cases in the sequence.

Custom builders then cover any cases where better naming is possible and 
desirable (such as explicitly naming each case as part of the parameters).

One refinement that may be useful is for the builders to produce (name, 
description, parameters) 3-tuple rather than 2-tuples, though. Then the default 
builder could just insert repr(params) as the description, while David's custom 
builder could either leave the description blank, or include a relevant subset 
of the parameters.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7897>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to