fix: supervise management calls across cancellation and parent loss
This commit is contained in:
1 parent
8d3eab1164
commit
6278091f21
8 files changed
+297
-24
No files matched your search
@@ -156,7 +156,8 @@ def test_removal_cli_keeps_mapped_drive_spelling(tmp_path, monkeypatch):
|
||||
from cbb_refresh_verify.management import Capability
|
||||
job = {'operation': 'remove', 'library': 'S:\\library\\mentor.lmc', 'name': 'Block',
|
||||
'partition': 'Logical-Physical', 'desktop': 'CbbManagement_fixture',
|
||||
'mentor_home': str(tmp_path), 'timeout_seconds': 10}
|
||||
'mentor_home': str(tmp_path), 'timeout_seconds': 10,
|
||||
'supervisor_pid': __import__('os').getpid()}
|
||||
request = tmp_path/'request.json'; request.write_text(json.dumps(job), encoding='utf-8')
|
||||
monkeypatch.setattr(native, '_current_desktop', lambda: (None, job['desktop']))
|
||||
monkeypatch.setattr(native.NativeManagementAdapter, 'capabilities', lambda self: {'remove': Capability(True, 'fake transport')})
|
||||
|
||||
Reference in new issue
Block a user