Skip to content

Commit 14ef26b

Browse files
committed
Fix --splinter-headless, as it could as well be of type bool, not str.
1 parent 3e05849 commit 14ef26b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytest_splinter/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def splinter_screenshot_dir(request):
237237
@pytest.fixture(scope="session")
238238
def splinter_headless(request):
239239
"""Flag to start the browser in headless mode."""
240-
return request.config.option.splinter_headless == True
240+
return request.config.option.splinter_headless
241241

242242

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

0 commit comments

Comments
 (0)