[pytest-dev] question about pytest_addoption

Bruno Oliveira nicoddemus at gmail.com
Tue Mar 1 08:39:49 EST 2016


On Tue, Mar 1, 2016 at 10:30 AM Bryan Berry <bryan.berry at gmail.com> wrote:

> Hi Bruno, I already successfully use that approach from one fixtures
> package. However, I want to add command-line options from one or more
> fixtures packages. Say i use ProductAFixture library that adds a
> command-line option and ProductBFixture that also adds a command-line
> option. How can i take advantage of both?
>

`pytest_plugins` accepts a list, so in this case is just a matter of:

```
# conftest.py
pytest_plugins = ['product_a', 'product_b']
```

Cheers,
Bruno.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20160301/b934ae7d/attachment.html>


More information about the pytest-dev mailing list