Skip to content

Commit

Permalink
Check only for bool
Browse files Browse the repository at this point in the history
  • Loading branch information
mpasternak committed Dec 25, 2020
1 parent c6afa5f commit 3e05849
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pytest_splinter/plugin.py
Expand Up @@ -237,10 +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"
or request.config.option.splinter_headless == True
)
return request.config.option.splinter_headless == True


@pytest.fixture(scope="session") # pragma: no cover
Expand Down

0 comments on commit 3e05849

Please sign in to comment.