fixtures_flakes.py: remove dead code
This commit is contained in:
@@ -113,7 +113,6 @@ def generate_flake(
|
|||||||
|
|
||||||
|
|
||||||
def create_flake(
|
def create_flake(
|
||||||
monkeypatch: pytest.MonkeyPatch,
|
|
||||||
temporary_home: Path,
|
temporary_home: Path,
|
||||||
flake_template: str | Path,
|
flake_template: str | Path,
|
||||||
clan_core_flake: Path | None = None,
|
clan_core_flake: Path | None = None,
|
||||||
@@ -188,7 +187,7 @@ def create_flake(
|
|||||||
def test_flake(
|
def test_flake(
|
||||||
monkeypatch: pytest.MonkeyPatch, temporary_home: Path
|
monkeypatch: pytest.MonkeyPatch, temporary_home: Path
|
||||||
) -> Iterator[FlakeForTest]:
|
) -> Iterator[FlakeForTest]:
|
||||||
yield from create_flake(monkeypatch, temporary_home, "test_flake")
|
yield from create_flake(temporary_home, "test_flake")
|
||||||
# check that git diff on ./sops is empty
|
# check that git diff on ./sops is empty
|
||||||
if (temporary_home / "test_flake" / "sops").exists():
|
if (temporary_home / "test_flake" / "sops").exists():
|
||||||
git_proc = sp.run(
|
git_proc = sp.run(
|
||||||
@@ -212,7 +211,6 @@ def test_flake_with_core(
|
|||||||
"clan-core flake not found. This test requires the clan-core flake to be present"
|
"clan-core flake not found. This test requires the clan-core flake to be present"
|
||||||
)
|
)
|
||||||
yield from create_flake(
|
yield from create_flake(
|
||||||
monkeypatch,
|
|
||||||
temporary_home,
|
temporary_home,
|
||||||
"test_flake_with_core",
|
"test_flake_with_core",
|
||||||
CLAN_CORE,
|
CLAN_CORE,
|
||||||
@@ -246,7 +244,6 @@ def test_flake_with_core_and_pass(
|
|||||||
"clan-core flake not found. This test requires the clan-core flake to be present"
|
"clan-core flake not found. This test requires the clan-core flake to be present"
|
||||||
)
|
)
|
||||||
yield from create_flake(
|
yield from create_flake(
|
||||||
monkeypatch,
|
|
||||||
temporary_home,
|
temporary_home,
|
||||||
"test_flake_with_core_and_pass",
|
"test_flake_with_core_and_pass",
|
||||||
CLAN_CORE,
|
CLAN_CORE,
|
||||||
@@ -262,7 +259,6 @@ def test_flake_minimal(
|
|||||||
"clan-core flake not found. This test requires the clan-core flake to be present"
|
"clan-core flake not found. This test requires the clan-core flake to be present"
|
||||||
)
|
)
|
||||||
yield from create_flake(
|
yield from create_flake(
|
||||||
monkeypatch,
|
|
||||||
temporary_home,
|
temporary_home,
|
||||||
CLAN_CORE / "templates" / "minimal",
|
CLAN_CORE / "templates" / "minimal",
|
||||||
CLAN_CORE,
|
CLAN_CORE,
|
||||||
|
|||||||
Reference in New Issue
Block a user