16 lines
466 B
Python
16 lines
466 B
Python
from typing import Any
|
|
|
|
|
|
def pytest_addoption(parser: Any) -> None:
|
|
"""
|
|
Add CLI options to `pytest` to pass those options to the test cases.
|
|
These options are used in `pytest_generate_tests`.
|
|
"""
|
|
parser.addoption("--use-old-replica-state", action="store_true", default=False)
|
|
|
|
|
|
def pytest_generate_tests(metafunc: Any) -> None:
|
|
metafunc.parametrize(
|
|
"use_old_replica_state", [metafunc.config.getoption("use_old_replica_state")]
|
|
)
|