title: How to use a fixture in mark.parametrize in pytest
body: <p>I have a scenario like below:</p>
  
  <pre><code>@pytest.fixture(scope="module", params=[5, 10])
  def get_data(request):
      data = []
      for i in range(request.param):
          data.append((i, 2))
      return data
  
  
  @pytest.mark.parametrize(('test_input','expected'), get_data)
  def test_data_types(test_input, expected):
      assert (test_input%expected) == 0
  </code></pre>
  
  <p>but i get an error that " TypeError: 'function' object is not iterable". How to achieve my goal. I read that we cant use fixture as an argument in parametrized test function but i want some alternative.</p>