[TIP] REG: Passing custom parameters to pytest

arun kali raja arunsep886 at gmail.com
Wed Aug 23 18:40:58 PDT 2017


I am using jenkins-like tool for doing CI and i will have  jobs for each
release..

So instead of having a text file, if the variables are mentioned in the
invocation then it's easy for users to use it...

On 24-Aug-2017 2:04 AM, "Bruno Oliveira" <nicoddemus at gmail.com> wrote:

> Hi Arun,
>
> On Wed, Aug 23, 2017 at 3:15 PM arun kali raja <arunsep886 at gmail.com>
> wrote:
>
>>
>> So i was thinking i will have a pytest option to accept a dict or
>> json  (as string and then literal-eval).
>>
>
> You mean passing a json or dict literal in the command line? If so it
> doesn't seem like a good idea, dicts/json will contain a lot of special
> characters that need to be shell-escaped.
>
>
>> Or is there a better way altogether to do this..
>>
>
> What's wrong with passing the variables using a file?
>
> Cheers,
> Bruno.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20170824/e207510c/attachment.htm>


More information about the testing-in-python mailing list