[pytest-dev] Shipping conftest.py in a python library
rpfannsc at redhat.com
Mon Sep 5 03:05:42 EDT 2016
the classical way to do that is to turn what is a conftest into a normal
afterwards any project can put that into the pytest_plugins variable.
also you could add a setuptools entrypoint like the normal 3rd party pytest
plugins use to enable it in all cases
2016-09-04 22:50 GMT+02:00 Zack Allen <zma4580 at gmail.com>:
> Hi all. I have a repo that takes advantage of py.test and ships itself w/
> py.test for implementers -> https://github.com/fastly/ftw.
> What im having trouble with is that Id like someone to `pip install ftw`
> and have the conftest.py under test/conftest.py in my repo available to
> them. Is there a way I can ship conftest.py from my github and hav eit be
> in the path when people pip install?
> pytest-dev mailing list
> pytest-dev at python.org
Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael Cunningham, Michael
O'Neill, Eric Shander
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pytest-dev