title: Why pytest.mark.parametrize does not work with classes in pytest?
body: <p>Following code does not collect any test cases (i expect 4 to be found). Why?</p>
  
  <pre><code>import pytest
  import uuid
  
  from selenium import webdriver
  from selenium.common.exceptions import TimeoutException
  
  class TestClass:
      def __init__(self):
          self.browser = webdriver.Remote(
              desired_capabilities=webdriver.DesiredCapabilities.FIREFOX,
              command_executor='http://my-selenium:4444/wd/hub'
          )
  
      @pytest.mark.parametrize('data', [1,2,3,4])    
      def test_buybuttons(self, data):
          self.browser.get('http://example.com/' + data)
          assert '&lt;noindex&gt;' not in self.browser.page_source
  
      def __del__(self):
          self.browser.quit()
  </code></pre>
  
  <p>If i remove <code>__init__</code> and <code>__del__</code> methods, it will collect tests correctly. But how i can setup and tear test down? :/</p>