Re: [pytest-dev] pytest_plugin with session scope fixture

2014-11-24 Thread Jens Hoffmann
Hi Holger, conftest.py/setuptools works just fine, but many tests require the absence of the plugin because of importing/dependency problems. So we decided to explicitly declare to use the plugin in every test file (also I find this to be a little less indirection). But anyway, things are

Re: [pytest-dev] pytest_plugin with session scope fixture

2014-11-24 Thread holger krekel
Hi Jens, On Mon, Nov 24, 2014 at 13:57 +0100, Jens Hoffmann wrote: > Hi everybody, > > I have a problem concering the following setup: > > - I have written a pytest plugin defining a session scope fixture > - in my test files - say ./test/a/test_foo.py and > ./test/b/test_bar.py I ``import'' the

[pytest-dev] pytest_plugin with session scope fixture

2014-11-24 Thread Jens Hoffmann
Hi everybody, I have a problem concering the following setup: - I have written a pytest plugin defining a session scope fixture - in my test files - say ./test/a/test_foo.py and ./test/b/test_bar.py I ``import'' the pytest plugin via declaring the pytest_plugins variable: pytest_plugins = 'my