title: Pass a string to pytest, to a unittest class
body: <p>I am calling a test file made in python, with the following:</p>
  
  <pre><code>py.test mytest.py
  </code></pre>
  
  <p>I did check the documentation and followed the example to add a fixture that read the argument passed, into a conftest file:</p>
  
  <pre><code>import pytest
  
  def pytest_addoption(parser):
      parser.addoption("--myoption", action="store", default="",
          help="Specify the option string")
  
  @pytest.fixture
  def myoption(request):
      return request.config.getoption("--myoption")
  </code></pre>
  
  <p>And in my unit test class, I did add the decorator to call the fixture:</p>
  
  <pre><code>import pytest
  
  @pytest.mark.usefixtures("myoption")
  class VariousTests(unittest.TestCase):
  
      def test_runsomething(self):
          print(myoption)
  </code></pre>
  
  <p>Although I can't get the value of my option in any way; what am I doing wrong here? All that I want is to pass a string to pytest, so it can populate a class variable in my unit test class.</p>