PT100: fix

This commit is contained in:
Jörg Thalheim
2025-08-26 15:28:01 +02:00
parent 24c20ff243
commit 3168fecd52
3 changed files with 3 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ def substitute_flake_inputs(clan_dir: Path, clan_core_path: Path) -> None:
assert flake_lock.exists(), "flake.lock should exist after flake update" assert flake_lock.exists(), "flake.lock should exist after flake update"
@pytest.fixture() @pytest.fixture
def offline_flake_hook(clan_core: Path) -> Callable[[Path], None]: def offline_flake_hook(clan_core: Path) -> Callable[[Path], None]:
def patch(clan_dir: Path) -> None: def patch(clan_dir: Path) -> None:
substitute_flake_inputs(clan_dir, clan_core) substitute_flake_inputs(clan_dir, clan_core)

View File

@@ -35,7 +35,7 @@ def offline_template(tmp_path_factory: Any, offline_session_flake_hook: Any) ->
return dst_dir return dst_dir
@pytest.fixture() @pytest.fixture
def patch_clan_template(monkeypatch: Any, offline_template: Path) -> None: def patch_clan_template(monkeypatch: Any, offline_template: Path) -> None:
@contextmanager @contextmanager
def fake_clan_template( def fake_clan_template(
@@ -51,7 +51,7 @@ def patch_clan_template(monkeypatch: Any, offline_template: Path) -> None:
monkeypatch.setattr("clan_lib.clan.create.clan_template", fake_clan_template) monkeypatch.setattr("clan_lib.clan.create.clan_template", fake_clan_template)
@pytest.fixture() @pytest.fixture
def clan_flake( def clan_flake(
tmp_path: Path, tmp_path: Path,
patch_clan_template: Any, # noqa: ARG001 patch_clan_template: Any, # noqa: ARG001

View File

@@ -43,7 +43,6 @@ lint.ignore = [
"ISC001", "ISC001",
"PLR0911", "PLR0911",
"PLR2004", "PLR2004",
"PT001",
"PT023", "PT023",
"S603", "S603",
"S607", "S607",