File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import os
2+ from importlib .metadata import version
23from pathlib import Path
34
45from pytest import MonkeyPatch
@@ -122,15 +123,11 @@ def test_config_file_parsing(
122123 handler = ArchConfigHandler ()
123124 arch_config = handler .config
124125
125- # the version is retrieved dynamically from an installed archinstall package
126- # as there is no version present in the test environment we'll set it manually
127- arch_config .version = '3.0.2'
128-
129126 # TODO: Use the real values from the test fixture instead of clearing out the entries
130127 arch_config .disk_config .device_modifications = [] # type: ignore[union-attr]
131128
132129 assert arch_config == ArchConfig (
133- version = '3.0.2' ,
130+ version = version ( 'archinstall' ) ,
134131 script = 'test_script' ,
135132 app_config = ApplicationConfiguration (
136133 bluetooth_config = BluetoothConfiguration (enabled = True ),
You can’t perform that action at this time.
0 commit comments