mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-12 17:46:36 +01:00
11 lines
300 B
Python
11 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")
|