A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-May/119770.html below:

Make parameterized tests in email less hackish.

[Python-Dev] [Python-checkins] cpython: Make parameterized tests in email less hackish.Nick Coghlan ncoghlan at gmail.com
Thu May 31 05:11:14 CEST 2012
I'm not clear on why this is a metaclass rather than a simple class decorator.

On Thu, May 31, 2012 at 11:54 AM, r.david.murray
<python-checkins at python.org> wrote:
> +    In a _params dictioanry, the keys become part of the name of the generated
> +    tests.  In a _params list, the values in the list are converted into a
> +    string by joining the string values of the elements of the tuple by '_' and
> +    converting any blanks into '_'s, and this become part of the name.  The
> +    full name of a generated test is the portion of the _params name before the
> +    '_params' portion, plus an '_', plus the name derived as explained above.

Your description doesn't match your examples or implementation.
Assuming the example and implementation are correct (and they look
more sensible than the currently described approach), I believe that
last sentence should be:

"The  full name of a generated test is a 'test_' prefix, the portion
of the test function name after the  '_as_' separator, plus an '_',
plus the name derived as explained above."

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4