|
8 | 8 | from archinstall.lib.hardware import GfxDriver |
9 | 9 | from archinstall.lib.models.audio_configuration import Audio, AudioConfiguration |
10 | 10 | from archinstall.lib.models.bootloader import Bootloader |
11 | | -from archinstall.lib.models.device_model import BtrfsOptions, DiskLayoutConfiguration, DiskLayoutType, SnapshotConfig, SnapshotType |
| 11 | +from archinstall.lib.models.device_model import DiskLayoutConfiguration, DiskLayoutType |
12 | 12 | from archinstall.lib.models.locale import LocaleConfiguration |
13 | 13 | from archinstall.lib.models.mirrors import CustomRepository, CustomServer, MirrorConfiguration, MirrorRegion, SignCheck, SignOption |
14 | 14 | from archinstall.lib.models.network_configuration import NetworkConfiguration, Nic, NicType |
@@ -218,43 +218,6 @@ def test_config_file_parsing( |
218 | 218 | ) |
219 | 219 |
|
220 | 220 |
|
221 | | -def test_btrfs_config_file_parsing( |
222 | | - monkeypatch: MonkeyPatch, |
223 | | - config_fixture: Path, |
224 | | - btrfs_config_fixture: Path, |
225 | | -) -> None: |
226 | | - monkeypatch.setattr( |
227 | | - 'sys.argv', |
228 | | - [ |
229 | | - 'archinstall', |
230 | | - '--config', |
231 | | - str(btrfs_config_fixture), |
232 | | - ], |
233 | | - ) |
234 | | - |
235 | | - handler = ArchConfigHandler() |
236 | | - arch_config = handler.config |
237 | | - |
238 | | - # the version is retrieved dynamically from an installed archinstall package |
239 | | - # as there is no version present in the test environment we'll set it manually |
240 | | - arch_config.version = '3.0.2' |
241 | | - |
242 | | - # TODO: Use the real values from the test fixture instead of clearing out the entries |
243 | | - arch_config.disk_config.device_modifications = [] # type: ignore[union-attr] |
244 | | - |
245 | | - assert arch_config.disk_config == DiskLayoutConfiguration( |
246 | | - config_type=DiskLayoutType.Default, |
247 | | - device_modifications=[], |
248 | | - lvm_config=None, |
249 | | - mountpoint=None, |
250 | | - btrfs_options=BtrfsOptions( |
251 | | - snapshot_config=SnapshotConfig( |
252 | | - SnapshotType.Timeshift, |
253 | | - ), |
254 | | - ), |
255 | | - ) |
256 | | - |
257 | | - |
258 | 221 | def test_deprecated_mirror_config_parsing( |
259 | 222 | monkeypatch: MonkeyPatch, |
260 | 223 | deprecated_mirror_config: Path, |
|
0 commit comments