conftest

Can PyTest addoption be made global variables across all files?

Can PyTest addoption be made global variables across all files? Question: I am trying to make user input from pytest addoption to be accessible through all files I have a conftest.py file with code import pytest def pytest_addoption(parser): try: parser.addoption(‘–user’, action=’store’, default=”, help=’Login Email for the API tests’) parser.addoption(‘–pwd’, action=’store’, default=”, help=’Login Password for the …

Total answers: 2