refactor: ruff autofixes

This commit is contained in:
Mark Paronyan committed 2026-09-27 15:55:10 +03:00
1 parent 2ac637c662
commit a0450b6bce
455 files changed
+12322 -14762

No files matched your search

@@ -41,20 +41,19 @@ async def test_set_extra_options(gns3vm, vmx_path, windows_platform):
gns3vm._vmx_path = vmx_path
# when there is not an entry, we modify it
with open(vmx_path, 'w') as f:
with open(vmx_path, "w") as f:
f.write("")
await gns3vm._set_extra_options()
with open(vmx_path, 'r') as f:
with open(vmx_path, "r") as f:
assert f.read() == 'vhv.enable = "TRUE"\n'
# when there is an entry, we don't modify it
with open(vmx_path, 'w') as f:
with open(vmx_path, "w") as f:
f.write('vhv.enable = "FALSE"\n')
await gns3vm._set_extra_options()
with open(vmx_path, 'r') as f:
with open(vmx_path, "r") as f:
assert f.read() == 'vhv.enable = "FALSE"\n'