Add version to test (#3699)

This commit is contained in:
Daniel Girtler 2025-07-31 04:52:09 +00:00 committed by GitHub
parent 11e33ed9f3
commit ab1793a4f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 5 deletions

View File

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