mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
make quality runs mypy over tests/ too; the toolchain test fixtures (monkeypatch params, the fake-subprocess factories) were missing annotations. No behavior change.
20 lines
522 B
Python
20 lines
522 B
Python
"""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
|