13 lines
277 B
Python
13 lines
277 B
Python
# _*_coding:utf-8 _*_
|
|
|
|
import pytest
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption("--fun_param", action="store", default="default_value", help="Description of my option.")
|
|
|
|
|
|
@pytest.fixture
|
|
def get_fun_param(request):
|
|
return request.config.getoption("--fun_param")
|