1
1
import logging
2
- from typing import Any
2
+ from typing import Any , Dict , Tuple
3
3
import pytest
4
4
5
5
from data import OTHER_GUEST_TOOLS , OTHER_GUEST_TOOLS_ISO , WIN_GUEST_TOOLS_ISOS
@@ -47,7 +47,7 @@ def unsealed_windows_vm_and_snapshot(running_windows_vm_without_tools: VM):
47
47
48
48
49
49
@pytest .fixture
50
- def running_unsealed_windows_vm (unsealed_windows_vm_and_snapshot : tuple [VM , Snapshot ]):
50
+ def running_unsealed_windows_vm (unsealed_windows_vm_and_snapshot : Tuple [VM , Snapshot ]):
51
51
vm , snapshot = unsealed_windows_vm_and_snapshot
52
52
vm .start ()
53
53
wait_for_vm_running_and_ssh_up_without_tools (vm )
@@ -56,7 +56,7 @@ def running_unsealed_windows_vm(unsealed_windows_vm_and_snapshot: tuple[VM, Snap
56
56
57
57
58
58
@pytest .fixture (scope = "class" )
59
- def vm_install_test_tools_per_test_class (unsealed_windows_vm_and_snapshot , guest_tools_iso : dict [str , Any ]):
59
+ def vm_install_test_tools_per_test_class (unsealed_windows_vm_and_snapshot , guest_tools_iso : Dict [str , Any ]):
60
60
vm , snapshot = unsealed_windows_vm_and_snapshot
61
61
vm .start ()
62
62
wait_for_vm_running_and_ssh_up_without_tools (vm )
@@ -66,7 +66,7 @@ def vm_install_test_tools_per_test_class(unsealed_windows_vm_and_snapshot, guest
66
66
67
67
68
68
@pytest .fixture
69
- def vm_install_test_tools_no_reboot (running_unsealed_windows_vm : VM , guest_tools_iso : dict [str , Any ]):
69
+ def vm_install_test_tools_no_reboot (running_unsealed_windows_vm : VM , guest_tools_iso : Dict [str , Any ]):
70
70
install_guest_tools (running_unsealed_windows_vm , guest_tools_iso , PowerAction .Nothing )
71
71
return running_unsealed_windows_vm
72
72
@@ -87,8 +87,8 @@ def other_tools_iso(host: Host, nfs_iso_sr: SR):
87
87
88
88
@pytest .fixture (ids = list (OTHER_GUEST_TOOLS .keys ()), params = list (OTHER_GUEST_TOOLS .values ()))
89
89
def vm_install_other_drivers (
90
- unsealed_windows_vm_and_snapshot : tuple [VM , Snapshot ],
91
- other_tools_iso : dict [str , Any ],
90
+ unsealed_windows_vm_and_snapshot : Tuple [VM , Snapshot ],
91
+ other_tools_iso : Dict [str , Any ],
92
92
request : pytest .FixtureRequest ,
93
93
):
94
94
vm , snapshot = unsealed_windows_vm_and_snapshot
0 commit comments