tests: dont expect .clan-flake file, it is not strictly required
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user