title: unable to get the data from pytest.fixture instead getting the data location
body: <p>i am testing in pytest.
  here is my code</p>
  <h1>file1.py</h1>
  <pre><code>def pytest_addoption(parser):
       parser.addoption('--uid')
  
  @pytest.fixture
  def login_id(request,pytestconfig):
      user_id = pytestconfig.getoption('--uid')
  
      return user_id
  </code></pre>
  <p>what it does is take the cli argument  in pytest</p>
  <h1>file2.py</h1>
  <pre><code>@pytest.fixture 
  def func(): 
        login(login_id)
        return session()
  </code></pre>
  <p>when i am performing the test on a module which require the session to be created login_id is giving me data as</p>
  <blockquote>
  <p>&lt; function login_id at 0x00000000092F79D8&gt;</p>
  </blockquote>
  <p>i am unable to get this data , how to get the value which i am passing in cli argument.</p>
  <p>i am using pycharm, python3.5 .</p>
  <p>cli parameter as <code>--uid username</code></p>
  <p>i am not getting the username in <code>login</code> fucntion but instead getting the location of data.</p>
  <p>thanks and regards</p>