Created
April 14, 2020 00:03
-
-
Save mnaumann-plenty/939745f37260df3169a74ce7559fea98 to your computer and use it in GitHub Desktop.
Formatted by black
This file contains hidden or 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
import pytest | |
from selenium import webdriver | |
def pytest_addoption(parser): | |
parser.addoption( | |
"--base_url", action="store", default="", help="The FarmOS url to test against" | |
) | |
parser.addoption( | |
"--chromedriver_path", | |
action="store", | |
default="", | |
help="chromedriver path location", | |
) | |
@pytest.fixture | |
def base_url(request): | |
return request.config.getoption("--base_url") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment