A pr for issue #1. If an environment variable for PYTEST_BASE_URL is set, pytest-base-url will use it as the default url.
Note, I'm not sure if defaulting to None is required. I chose a default of None for semantics and readability. The test suite passes for both variations; default=os.getenv('PYTEST_BASE_URL', None) and default=os.getenv('PYTEST_BASE_URL')
A pr for issue #1. If an environment variable for
PYTEST_BASE_URL
is set, pytest-base-url will use it as the default url.None
is required. I chose a default ofNone
for semantics and readability. The test suite passes for both variations;default=os.getenv('PYTEST_BASE_URL', None)
anddefault=os.getenv('PYTEST_BASE_URL')