From c620ee9d908eded2f62a6414b8b1c9bac16feb6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 29 Sep 2024 18:46:13 +0200 Subject: [PATCH] fixtures_flake: drop unused substitutions --- pkgs/clan-cli/clan_cli/inventory/classes.py | 1 - pkgs/clan-cli/tests/fixtures_flakes.py | 13 ++++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/inventory/classes.py b/pkgs/clan-cli/clan_cli/inventory/classes.py index c66d5aa70..d723d93a5 100644 --- a/pkgs/clan-cli/clan_cli/inventory/classes.py +++ b/pkgs/clan-cli/clan_cli/inventory/classes.py @@ -19,7 +19,6 @@ class Machine: name: str description: None | str = field(default = None) icon: None | str = field(default = None) - system: None | str = field(default = None) tags: list[str] = field(default_factory = list) diff --git a/pkgs/clan-cli/tests/fixtures_flakes.py b/pkgs/clan-cli/tests/fixtures_flakes.py index 4b999307b..02547afe0 100644 --- a/pkgs/clan-cli/tests/fixtures_flakes.py +++ b/pkgs/clan-cli/tests/fixtures_flakes.py @@ -109,13 +109,12 @@ def generate_flake( inventory = {} if machine_configs is None: machine_configs = {} - if substitutions is None: - substitutions = { - "__CHANGE_ME__": "_test_vm_persistence", - "git+https://git.clan.lol/clan/clan-core": "path://" + str(CLAN_CORE), - "https://git.clan.lol/clan/clan-core/archive/main.tar.gz": "path://" - + str(CLAN_CORE), - } + substitutions = { + "__CHANGE_ME__": "_test_vm_persistence", + "git+https://git.clan.lol/clan/clan-core": "path://" + str(CLAN_CORE), + "https://git.clan.lol/clan/clan-core/archive/main.tar.gz": "path://" + + str(CLAN_CORE), + } flake = temporary_home / "flake" shutil.copytree(flake_template, flake) sp.run(["chmod", "+w", "-R", str(flake)], check=True)