title: Pytest - Calling a fixture from another fixture
body: <p>I have a fixture that is returning an object of certain type and I have another fixture defined in another file that basically uses the object to do other things. But I am not able to return the object from my first fixture.</p>
  
  <p><code>file-1</code></p>
  
  <pre><code>def fixture_1(s, **kwargs):
      def hook(s, **kwargs):
          p_b = s.get()
          p = p_b.build()
          yield p
      return hook
  </code></pre>
  
  <p><code>file-2</code> <code>conftest.py</code></p>
  
  <pre><code>@pytest.fixture(scope='module')
  def fixture_1(s, **kwargs):
      def hook(s, **kwargs):
          #Default implementation is no-op.
          pass
      return hook
  
  @pytest.fixture(scope='module')
  def fixture_2(s,b_p):
      some_p = fixture_1(s)
      current_status = s.start(some_p)
  
      print(current_status)
      yield current_status
  </code></pre>
  
  <p>I want to basically retrieve object <code>p</code> returned in <code>file-1</code> <code>fixture_1</code> and use it in <code>file-2</code> <code>fixture_2</code> fixture.</p>