Add version to test (#3699)
This commit is contained in:
parent
11e33ed9f3
commit
ab1793a4f4
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue