Juergen Edelbluth
9b744d8b4c
- Fixing all the mypy warnings - Part 1 - Changed README - Breaking Change about parameter order - Tests for it
23 lines
501 B
Python
23 lines
501 B
Python
"""
|
|
Command Line Options
|
|
"""
|
|
from _pytest.config.argparsing import Parser
|
|
|
|
HELP_TEXT = "set base dir for getting CSV data files from"
|
|
|
|
|
|
def pytest_addoption(parser: Parser, plugin_name: str = "csv-params") -> None:
|
|
"""
|
|
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,
|
|
)
|