Files
roboco/tests/unit/test_toolchain_flag.py
T

20 lines
522 B
Python
Raw Normal View History

"""The toolchain-match subsystem is gated by a default-off flag."""
from __future__ import annotations
from typing import TYPE_CHECKING
from roboco.config import Settings
if TYPE_CHECKING:
import pytest
def test_toolchain_match_disabled_by_default() -> None:
assert Settings().toolchain_match_enabled is False
def test_toolchain_match_reads_env(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setenv("ROBOCO_TOOLCHAIN_MATCH_ENABLED", "true")
assert Settings().toolchain_match_enabled is True