From ab1793a4f46f80aac370b7a2ddf7178017ca1ed5 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Thu, 31 Jul 2025 04:52:09 +0000 Subject: [PATCH] Add version to test (#3699) --- tests/test_args.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_args.py b/tests/test_args.py index 895740e6..28c7fc8e 100644 --- a/tests/test_args.py +++ b/tests/test_args.py @@ -1,4 +1,5 @@ import os +from importlib.metadata import version from pathlib import Path from pytest import MonkeyPatch @@ -122,15 +123,11 @@ def test_config_file_parsing( handler = ArchConfigHandler() arch_config = handler.config - # the version is retrieved dynamically from an installed archinstall package - # as there is no version present in the test environment we'll set it manually - arch_config.version = '3.0.2' - # TODO: Use the real values from the test fixture instead of clearing out the entries arch_config.disk_config.device_modifications = [] # type: ignore[union-attr] assert arch_config == ArchConfig( - version='3.0.2', + version=version('archinstall'), script='test_script', app_config=ApplicationConfiguration( bluetooth_config=BluetoothConfiguration(enabled=True),