PT100: fix
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def offline_flake_hook(clan_core: Path) -> Callable[[Path], None]:
|
||||
def patch(clan_dir: Path) -> None:
|
||||
substitute_flake_inputs(clan_dir, clan_core)
|
||||
|
||||
@@ -35,7 +35,7 @@ def offline_template(tmp_path_factory: Any, offline_session_flake_hook: Any) ->
|
||||
return dst_dir
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def patch_clan_template(monkeypatch: Any, offline_template: Path) -> None:
|
||||
@contextmanager
|
||||
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)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def clan_flake(
|
||||
tmp_path: Path,
|
||||
patch_clan_template: Any, # noqa: ARG001
|
||||
|
||||
@@ -43,7 +43,6 @@ lint.ignore = [
|
||||
"ISC001",
|
||||
"PLR0911",
|
||||
"PLR2004",
|
||||
"PT001",
|
||||
"PT023",
|
||||
"S603",
|
||||
"S607",
|
||||
|
||||
Reference in New Issue
Block a user