tests: dont expect .clan-flake file, it is not strictly required

This commit is contained in:
Johannes Kirschbauer
2025-07-08 13:03:32 +02:00
parent 0cbdfb26f1
commit 1a861cd889
2 changed files with 0 additions and 3 deletions

View File

@@ -23,7 +23,6 @@ def test_create_flake(
cli.run(["flakes", "create", str(flake_dir), "--template=default", "--no-update"]) cli.run(["flakes", "create", str(flake_dir), "--template=default", "--no-update"])
assert (flake_dir / ".clan-flake").exists()
# Replace the inputs.clan.url in the template flake.nix # Replace the inputs.clan.url in the template flake.nix
substitute( substitute(
flake_dir / "flake.nix", flake_dir / "flake.nix",
@@ -68,7 +67,6 @@ def test_create_flake_existing_git(
cli.run(["flakes", "create", str(flake_dir), "--template=default", "--no-update"]) cli.run(["flakes", "create", str(flake_dir), "--template=default", "--no-update"])
assert (flake_dir / ".clan-flake").exists()
# Replace the inputs.clan.url in the template flake.nix # Replace the inputs.clan.url in the template flake.nix
substitute( substitute(
flake_dir / "flake.nix", flake_dir / "flake.nix",

View File

@@ -13,7 +13,6 @@
# subdir = temporary_home / "subdir" # subdir = temporary_home / "subdir"
# subdir.mkdir() # subdir.mkdir()
# monkeypatch.chdir(subdir) # monkeypatch.chdir(subdir)
# (subdir / ".clan-flake").touch()
# assert _get_clan_flake_toplevel() == subdir # assert _get_clan_flake_toplevel() == subdir
from clan_lib.dirs import clan_key_safe, vm_state_dir from clan_lib.dirs import clan_key_safe, vm_state_dir