2022-08-15 14:25:39 +02:00
|
|
|
"""
|
|
|
|
Command Line Options
|
|
|
|
"""
|
2022-08-15 18:19:39 +02:00
|
|
|
from _pytest.config.argparsing import Parser
|
2022-08-15 14:25:39 +02:00
|
|
|
|
|
|
|
HELP_TEXT = "set base dir for getting CSV data files from"
|
|
|
|
|
|
|
|
|
2022-08-15 18:19:39 +02:00
|
|
|
def pytest_addoption(parser: Parser, plugin_name: str = "csv-params") -> None:
|
2022-08-15 14:25:39 +02:00
|
|
|
"""
|
|
|
|
Add Command Line Arguments for pytest execution
|
|
|
|
"""
|
|
|
|
|
|
|
|
group = parser.getgroup(plugin_name)
|
|
|
|
group.addoption(
|
|
|
|
f"--{plugin_name}-base-dir",
|
|
|
|
action="store",
|
|
|
|
type=str,
|
|
|
|
default=None,
|
|
|
|
required=False,
|
|
|
|
help=HELP_TEXT,
|
|
|
|
)
|