Re: Question about code in test_email/test_message.py

Stefan Ring <[email protected]>
Newsgroups gmane.comp.python.devel
Message-ID <CAAxjCEyTjpW7QtnLB1d48nG5PL2VVWgsVP62Q6SvzWW_L2537g@mail.gmail.com>
> In that file there is a variable named message_params that is initialized with about 15 different sets of test data, in class TestEmailMessageBase, but is never referenced again. I even grepped for the variable name in all test py files to confirm that it isn't somehow imported somewhere.
>
> Is there something about the test framework that uses that automatically? I'm hesitant to add any testing code for my issue if I'm missing something so fundamental.

Have a look at the "parameterize" decorator (in __init__.py in the
same directory). It looks for things that .endswith('_params').
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.