2022-12-26 18:31:09 +01:00
|
|
|
import pytest
|
2022-12-29 21:29:20 +01:00
|
|
|
from typing import Any
|
2022-12-26 18:31:09 +01:00
|
|
|
|
|
|
|
|
|
2022-12-29 21:29:20 +01:00
|
|
|
def pytest_addoption(parser: pytest.Parser) -> None:
|
2022-12-29 15:52:17 +01:00
|
|
|
parser.addoption("--relaxed", action='store_true', help="run tests in relaxed mode")
|
2022-12-26 18:31:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
2022-12-29 21:29:20 +01:00
|
|
|
def relaxed(request: pytest.FixtureRequest) -> Any:
|
2022-12-26 18:31:09 +01:00
|
|
|
return request.config.getoption("--relaxed")
|