From 06257d044a78886e2c87a8b7a49b4f2388595203 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 22 Jul 2025 18:12:51 +0200 Subject: [PATCH] test_create: fix duplicated variables --- pkgs/clan-cli/clan_lib/tests/test_create.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/clan-cli/clan_lib/tests/test_create.py b/pkgs/clan-cli/clan_lib/tests/test_create.py index d31fd88d5..d5b1498e8 100644 --- a/pkgs/clan-cli/clan_lib/tests/test_create.py +++ b/pkgs/clan-cli/clan_lib/tests/test_create.py @@ -115,7 +115,7 @@ def test_clan_create_api( host_ip = hosts[0].address host_user = hosts[0].user vm_name = "test-clan" - clan_core_dir_var = str(clan_core) + priv_key_var = hosts[0].private_key ssh_port_var = str(hosts[0].port) @@ -143,9 +143,8 @@ def test_clan_create_api( assert dest_clan_dir.is_dir() assert (dest_clan_dir / "flake.nix").is_file() - clan_core_dir = Path(clan_core_dir_var) # TODO: We need a way to generate the lock file for the templates - fix_flake_inputs(dest_clan_dir, clan_core_dir) + fix_flake_inputs(dest_clan_dir, clan_core) # ===== CREATE SOPS KEY ====== sops_keys = maybe_get_admin_public_keys()