Skip to content

Instantly share code, notes, and snippets.

@lucasrcezimbra
Created May 8, 2021 19:08
Show Gist options
  • Save lucasrcezimbra/eacc0e49c05660cc4ddc526a58c1fd18 to your computer and use it in GitHub Desktop.
Save lucasrcezimbra/eacc0e49c05660cc4ddc526a58c1fd18 to your computer and use it in GitHub Desktop.
pytest parameters
def pytest_addoption(parser):
parser.addoption('--headless', action='store_true')
@pytest.fixture(scope='module')
def headless(pytestconfig):
headless = pytestconfig.getoption('headless')
return headless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment