You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
300 B
Python
12 lines
300 B
Python
import pytest
|
|
from typing import Any
|
|
|
|
|
|
def pytest_addoption(parser: pytest.Parser) -> None:
|
|
parser.addoption("--relaxed", action='store_true', help="run tests in relaxed mode")
|
|
|
|
|
|
@pytest.fixture
|
|
def relaxed(request: pytest.FixtureRequest) -> Any:
|
|
return request.config.getoption("--relaxed")
|