import pytest
from typing import Any, Iterator

from helpers import Browser


def pytest_addoption(parser: Any) -> None:
    parser.addoption("--headless", action="store_true")


@pytest.fixture(scope="module")
def headless(request: Any) -> bool:
    option: bool = request.config.getoption("--headless")
    return option


@pytest.fixture(scope="module")
def browser(headless: bool) -> Iterator[Browser]:
    browser = Browser(headless=headless)
    yield browser
    browser.close()

a168a4dc082064d34ac168dc97d2e00dd5cdd0fa
<mask token>


@pytest.fixture(scope='module')
def browser(headless: bool) ->Iterator[Browser]:
    browser = Browser(headless=headless)
    yield browser
    browser.close()

<mask token>


@pytest.fixture(scope='module')
def headless(request: Any) ->bool:
    option: bool = request.config.getoption('--headless')
    return option


@pytest.fixture(scope='module')
def browser(headless: bool) ->Iterator[Browser]:
    browser = Browser(headless=headless)
    yield browser
    browser.close()

<mask token>


def pytest_addoption(parser: Any) ->None:
    parser.addoption('--headless', action='store_true')


@pytest.fixture(scope='module')
def headless(request: Any) ->bool:
    option: bool = request.config.getoption('--headless')
    return option


@pytest.fixture(scope='module')
def browser(headless: bool) ->Iterator[Browser]:
    browser = Browser(headless=headless)
    yield browser
    browser.close()

import pytest
from typing import Any, Iterator
from helpers import Browser


def pytest_addoption(parser: Any) ->None:
    parser.addoption('--headless', action='store_true')


@pytest.fixture(scope='module')
def headless(request: Any) ->bool:
    option: bool = request.config.getoption('--headless')
    return option


@pytest.fixture(scope='module')
def browser(headless: bool) ->Iterator[Browser]:
    browser = Browser(headless=headless)
    yield browser
    browser.close()

import pytest
from typing import Any, Iterator

from helpers import Browser


def pytest_addoption(parser: Any) -> None:
    parser.addoption("--headless", action="store_true")


@pytest.fixture(scope="module")
def headless(request: Any) -> bool:
    option: bool = request.config.getoption("--headless")
    return option


@pytest.fixture(scope="module")
def browser(headless: bool) -> Iterator[Browser]:
    browser = Browser(headless=headless)
    yield browser
    browser.close()
