templates: rename 'new_clan' to default
This commit is contained in:
committed by
Mic92
parent
d4fba5d42d
commit
5d6a0c9883
@@ -105,7 +105,7 @@ git+file:///home/lhebendanz/Projects/clan-core
|
||||
│ ├───editor omitted (use '--all-systems' to show)
|
||||
└───templates
|
||||
├───default: template: Initialize a new clan flake
|
||||
└───new-clan: template: Initialize a new clan flake
|
||||
└───default: template: Initialize a new clan flake
|
||||
```
|
||||
|
||||
You can execute every test separately by following the tree path `nix run .#checks.x86_64-linux.clan-pytest -L` for example.
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
clan = {
|
||||
default = {
|
||||
description = "Initialize a new clan flake";
|
||||
path = ./clan/new-clan;
|
||||
path = ./clan/default;
|
||||
};
|
||||
minimal = {
|
||||
description = "for clans managed via (G)UI";
|
||||
|
||||
Reference in New Issue
Block a user