Please see the below fixture and help me understand what exactly request and request.cls.driver=driver is doing? As far I understood it is related to scope of the fixture, what happens if i use a different scope?
@pytest.fixture(scope="class")
def driver_init(request):
from selenium import webdriver
web_driver = webdriver.Chrome("C:/chromedriver.exe")
request.cls.driver = web_driver
yield
web_driver.close()