templates: rename 'new_clan' to default

This commit is contained in:
Johannes Kirschbauer
2025-07-07 16:23:05 +02:00
committed by Mic92
parent a635f9c6fe
commit 0dce3fc7ec
12 changed files with 7 additions and 7 deletions

View File

@@ -55,18 +55,18 @@ def test_clan_core_templates(
template_path = default_template.get("path", None)
assert template_path is not None
new_clan = temporary_home / "new_clan"
my_clan = temporary_home / "my_clan"
copy_from_nixstore(
Path(template_path),
new_clan,
my_clan,
)
flake_nix = new_clan / "flake.nix"
flake_nix = my_clan / "flake.nix"
assert (flake_nix).exists()
assert (flake_nix).is_file()
assert (new_clan / "machines").is_dir()
assert (my_clan / "machines").is_dir()
# Test if we can write to the flake.nix file
with flake_nix.open("r+") as f:

View File

@@ -131,7 +131,7 @@ def test_clan_create_api(
assert public_key.exists()
assert public_key.is_file()
dest_clan_dir = Path("~/new-clan").expanduser()
dest_clan_dir = Path("~/default").expanduser()
# ===== CREATE CLAN ======
# TODO: We need to generate a lock file for the templates