Skip to content

Commit

Permalink
Fix --splinter-headless, as it could as well be of type bool, not str.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpasternak committed Dec 25, 2020
1 parent 3e05849 commit 14ef26b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytest_splinter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def splinter_screenshot_dir(request):
@pytest.fixture(scope="session")
def splinter_headless(request):
"""Flag to start the browser in headless mode."""
return request.config.option.splinter_headless == True
return request.config.option.splinter_headless


@pytest.fixture(scope="session") # pragma: no cover
Expand Down Expand Up @@ -781,5 +781,4 @@ def pytest_addoption(parser): # pragma: no cover
help="Run the browser in headless mode.",
action="store_true",
dest="splinter_headless",
default="false",
)

0 comments on commit 14ef26b

Please sign in to comment.