-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #796 from robbrad/795_unit_test_coverage
fix: #795 unit test coverage
- Loading branch information
Showing
3 changed files
with
156 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import pytest | ||
|
||
# Test the command-line options | ||
|
||
def test_headless_mode(pytestconfig): | ||
# Simulate pytest command-line option | ||
headless_mode_value = pytestconfig.getoption("--headless") | ||
assert headless_mode_value == "True" # This should match the default value | ||
|
||
def test_local_browser(pytestconfig): | ||
local_browser_value = pytestconfig.getoption("--local_browser") | ||
assert local_browser_value == "False" # This should match the default value | ||
|
||
def test_selenium_url(pytestconfig): | ||
selenium_url_value = pytestconfig.getoption("--selenium_url") | ||
assert selenium_url_value == "http://localhost:4444" # This should match the default value | ||
|
||
# Test the fixtures | ||
|
||
def test_headless_mode_fixture(headless_mode): | ||
assert headless_mode == "True" # This should match the default value | ||
|
||
def test_local_browser_fixture(local_browser): | ||
assert local_browser == "False" # This should match the default value | ||
|
||
def test_selenium_url_fixture(selenium_url): | ||
assert selenium_url == "http://localhost:4444" # This should match the default value |