Skip to content

Instantly share code, notes, and snippets.

@mnaumann-plenty
Created April 14, 2020 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnaumann-plenty/939745f37260df3169a74ce7559fea98 to your computer and use it in GitHub Desktop.
Save mnaumann-plenty/939745f37260df3169a74ce7559fea98 to your computer and use it in GitHub Desktop.
Formatted by black
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