py.test session level fixtures in setup_method
<p>Is there a way to somehow use pytest fixtures from conftest.py in a test class's <strong>setup</strong>?
I need to initialize an object when the session starts and use it in some test classes' setup.</p>

<p>Something like this: </p>

<pre><code># conftest.py:

import pytest

@pytest.fixture(scope="session", autouse=True)
def myfixture(request):
    return "myfixture"
</code></pre>

<hr>

<pre><code># test_aaa.py

class TestAAA(object):

    def setup(self, method, myfixture):
        print("setup myfixture: {}".format(myfixture))

    ...
</code></pre>