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

+21 -16
View File
@@ -21,6 +21,7 @@ from gns3server.controller.gns3vm.remote_gns3_vm import RemoteGNS3VM
from gns3server.controller.gns3vm.gns3_vm_error import GNS3VMError
from pydantic import SecretStr
@pytest.fixture
def gns3vm(controller):
@@ -38,14 +39,16 @@ async def test_list(gns3vm, controller):
@pytest.mark.asyncio
async def test_start(gns3vm, controller):
await controller.add_compute("r1",
name="R1",
protocol="https",
host="r1.local",
port=8484,
user="hello",
password=SecretStr("world"),
connect=False)
await controller.add_compute(
"r1",
name="R1",
protocol="https",
host="r1.local",
port=8484,
user="hello",
password=SecretStr("world"),
connect=False,
)
gns3vm.vmname = "R1"
await gns3vm.start()
@@ -60,14 +63,16 @@ async def test_start(gns3vm, controller):
@pytest.mark.asyncio
async def test_start_invalid_vm(gns3vm, controller):
await controller.add_compute("r1",
connect=False,
name="R1",
protocol="https",
host="r1.local",
port=8484,
user="hello",
password=SecretStr("world"))
await controller.add_compute(
"r1",
connect=False,
name="R1",
protocol="https",
host="r1.local",
port=8484,
user="hello",
password=SecretStr("world"),
)
gns3vm.vmname = "R2"
with pytest.raises(GNS3VMError):