templates: fix tests

This commit is contained in:
Johannes Kirschbauer
2025-06-27 17:40:02 +02:00
parent de7f2dc6cb
commit df598275f9
5 changed files with 1 additions and 15 deletions

View File

@@ -35,13 +35,6 @@ def test_create_flake(
cli.run(["machines", "create", "machine1"]) cli.run(["machines", "create", "machine1"])
# create a hardware-configuration.nix that doesn't throw an eval error
for patch_machine in ["jon", "sara"]:
(
flake_dir / "machines" / f"{patch_machine}/hardware-configuration.nix"
).write_text("{}")
with capture_output as output: with capture_output as output:
cli.run(["machines", "list"]) cli.run(["machines", "list"])
assert "machine1" in output.out assert "machine1" in output.out
@@ -79,13 +72,6 @@ def test_create_flake_existing_git(
monkeypatch.chdir(flake_dir) monkeypatch.chdir(flake_dir)
cli.run(["machines", "create", "machine1"]) cli.run(["machines", "create", "machine1"])
# create a hardware-configuration.nix that doesn't throw an eval error
for patch_machine in ["jon", "sara"]:
(
flake_dir / "machines" / f"{patch_machine}/hardware-configuration.nix"
).write_text("{}")
with capture_output as output: with capture_output as output:
cli.run(["machines", "list"]) cli.run(["machines", "list"])
assert "machine1" in output.out assert "machine1" in output.out

View File

View File

View File

@@ -1,7 +1,7 @@
{ {
inputs.clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz"; inputs.clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
inputs.nixpkgs.follows = "clan-core/nixpkgs"; inputs.nixpkgs.follows = "clan-core/nixpkgs";
inputs.flake-parts.url = "github:hercules-ci/flake-parts"; inputs.flake-parts.follows = "clan-core/flake-parts";
inputs.flake-parts.inputs.nixpkgs-lib.follows = "clan-core/nixpkgs"; inputs.flake-parts.inputs.nixpkgs-lib.follows = "clan-core/nixpkgs";
outputs = outputs =

View File