Created
May 8, 2021 19:08
-
-
Save lucasrcezimbra/eacc0e49c05660cc4ddc526a58c1fd18 to your computer and use it in GitHub Desktop.
pytest parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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