Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytest use fixture without running any tests

# conftest.py
import my_test

def pytest_configure(config):
    my_test.my_global_variable = config.getoption("--parameter")
Source by docs.pytest.org #
 
PREVIOUS NEXT
Tagged: #pytest #fixture #running #tests
ADD COMMENT
Topic
Name
3+1 =