11
11
def pytest_addoption(parser):
12
parser.addoption("-M", "--myopt", action="store",
12
parser.addoption("-M", "--myopt", action="store",
13
13
help="specify string to set myopt")
15
15
def pytest_configure(config):
17
17
# do action based on option value
20
20
.. _optparse: http://docs.python.org/library/optparse.html
26
26
------------------------------------------------------------
31
31
# [[from py/documentation/example/pytest/test_setup_flow_example.py]]