title: Can params passed to pytest fixture be passed in as a variable?
body: <p>I have two simple test setups and I'm trying to group them in one fixture
  and want the test function to pass in the 'params' to the fixture.</p>
  
  <p>Here's a contrived example, to explain my question.
  Say I have the following pytest fixture:</p>
  
  <pre><code>@pytest.fixture(scope="module", params=['param1','param2'])
  def myFixture(request):
      if request.param == 'param1':
          p = 5
      elif request.param == 'param2':
          p = 10
      return p
  
  # would like to set request.param = ['param1'] for myFixture
  def test_madeup(myFixture):
      assert myFixture == 5
  
  # would like to set request.param = ['param2'] for myFixture
  def test_madeup2(myFixture):
      assert myFixture == 10
  </code></pre>
  
  <p>Can I make it so that the params above are passed in as an input to the <code>test_madeup</code> function?
  So, something like the following:</p>
  
  <pre><code>@pytest.fixture(scope="module", params=fixtureParams)
  def myFixture(request):
      if request.param == 'param1':
          return 5
      elif request.param == 'param2':
          return 10
  
  
  def test_madeup(myFixture, ['param1']):
      assert myFixture == 5
  </code></pre>
  
  <p>The above, of course, doesn't work. The real case is a bit more complex,
  but I just want to know if I can pass the <code>params=['param1','param2']</code>
  to the fixture from the <code>test_madeup</code> function.</p>