mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
style: sort imports in remaining tests and scripts
This commit is contained in:
1 parent
6d16d923c7
commit
83e7fbe63b
22 files changed
+68
-65
No files matched your search
@@ -6,9 +6,9 @@ device_config_send / device_show_run / vpcs_config_set.
|
||||
"""
|
||||
|
||||
import json
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
VPCS_MOD = "gns3server.agent.gns3_copilot.tools_v2.vpcs_tools_netmiko"
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@ Tests that handlers correctly transform tool parameters into HTTP calls.
|
||||
"""
|
||||
|
||||
import json
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
|
||||
def _mock_conn(json_result=None):
|
||||
@@ -222,6 +222,7 @@ class TestNode:
|
||||
|
||||
def test_create_batch_preserves_submission_order(self, ctx):
|
||||
import time
|
||||
|
||||
from gns3server.agent.gns3_copilot.gns3_client.api_handlers import create_node_handler
|
||||
|
||||
with patch(f"{AH}._get_connector") as m:
|
||||
@@ -249,6 +250,7 @@ class TestNode:
|
||||
def test_create_batch_default_names_created_sequentially(self, ctx):
|
||||
import threading
|
||||
import time
|
||||
|
||||
from gns3server.agent.gns3_copilot.gns3_client.api_handlers import create_node_handler
|
||||
|
||||
def _run(nodes_param):
|
||||
@@ -502,6 +504,7 @@ class TestLink:
|
||||
|
||||
def test_create_batch_preserves_submission_order(self, ctx):
|
||||
import time
|
||||
|
||||
from gns3server.agent.gns3_copilot.gns3_client.api_handlers import create_link_handler
|
||||
|
||||
with patch(f"{AH}._get_connector") as m:
|
||||
|
||||
Reference in new issue
Block a user