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),