CLI/tests: use correct fixture paths

This commit is contained in:
Johannes Kirschbauer
2024-11-28 11:56:12 +01:00
parent 3b7559e066
commit ffff5aa5ae

View File

@@ -10,7 +10,7 @@ from pathlib import Path
from typing import Any, NamedTuple
import pytest
from clan_cli.dirs import nixpkgs_source
from clan_cli.dirs import TemplateType, clan_templates, nixpkgs_source
from clan_cli.locked_open import locked_open
from fixture_error import FixtureError
from root import CLAN_CORE
@@ -213,7 +213,7 @@ def minimal_flake_template() -> Iterator[ClanFlake]:
mp.setenv("HOME", home)
flake = ClanFlake(
temporary_home=Path(home),
flake_template=CLAN_CORE / "templates" / "minimal",
flake_template=clan_templates(TemplateType.CLAN) / "minimal",
)
flake.init_from_template()
yield flake