title: Fixture not found pytest error is being displayed when I run my test
body: <p>Here are my conf.py, baseClass.py and actual test file (test_e2e.py). Can you please check and let me know what is wrong in my code. Looks like everything is fine but still my test is not running and showing 'fixture not found' error.</p>
  <p>conf.py file</p>
  <pre><code>import pytest
  from selenium import webdriver
  from selenium.webdriver.chrome.service import Service
  
  
  @pytest.fixture(scope=&quot;class&quot;)
  def setup(request):
      chrome_options = webdriver.ChromeOptions()
      chrome_options.add_argument(&quot;--start-maximized&quot;)
      # chrome_options.add_argument(&quot;headless&quot;)
      chrome_options.add_argument(&quot;--ignore-certificate-errors&quot;)
  
      ser = Service(&quot;C://chromedriver.exe&quot;)
      driver = webdriver.Chrome(service=ser,options=chrome_options)
      driver.get('https://google.com')
      request.cls.driver = driver
      yield
      driver.close()
  </code></pre>
  <p>Baseclass.py</p>
  <pre><code>import pytest
  
  
  
  @pytest.mark.usefixtures(&quot;setup&quot;)
  class BaseClass:
      pass
  </code></pre>
  <p>main test file</p>
  <pre><code>from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.support.wait import WebDriverWait
  from utilities.BaseClass import BaseClass
  
  
  class TestOne(BaseClass):
      def test_e2e(self):
          self.driver.find_element(By.CSS_SELECTOR, &quot;a[href*='shop']&quot;).click()
          cards = self.driver.find_elements(By.CSS_SELECTOR, &quot;.card-title a&quot;)
  
          i = -1
  
          for card in cards:
              i = i + 1
              cardText = card.text
              print(cardText)
              if cardText == &quot;Blackberry&quot;:
                  self.driver.find_element(By.CSS_SELECTOR, &quot;.card-footer button&quot;)[i].click()
  </code></pre>
  <p>Error I get after execution</p>
  <pre><code>============================= test session starts =============================
  </code></pre>
  <p>collecting ... collected 1 item</p>
  <p>test_e2e.py::TestOne::test_e2e ERROR                                     [100%]
  test setup failed
  file C:\Users\Admin\Desktop\pythonselframework\tests\test_e2e.py, line 8
  def test_e2e(self):
  E       fixture 'setup' not found</p>
  <blockquote>
  <pre><code>  available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
    use 'pytest --fixtures [testpath]' for help on them.
  </code></pre>
  </blockquote>
  <p>I am expecting my selenium tests to run smooth. I dont find any error in my files but still when I run my test file, it shows an error.</p>