Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pytest_addoption(parser):
- parser.addoption('--manager_db_host', action='store')
- def pytest_configure(config):
- os.environ["--manager_db_host"] = config.getoption('manager_db_host')
- os.getenv('manager_db_host') получаем в коде
- python -m pytest tests/ -m integration --manager_db_host="host" --html=report.html --self-contained-html ввызов
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement