refactor: remove unused imports

This commit is contained in:
Mark Paronyan committed 2026-10-03 19:43:58 +03:00
1 parent 084004586c
commit 306d8fbde4
75 files changed
+21 -101

No files matched your search

-2
View File
@@ -21,8 +21,6 @@ from fastapi import FastAPI, status
from httpx import AsyncClient
from gns3server.compute.project import Project
from gns3server.config import Config
from gns3server.schemas.config import ServerSettings
from gns3server.version import __version__
pytestmark = pytest.mark.asyncio
@@ -16,7 +16,6 @@
import os
import stat
import sys
from unittest.mock import patch
import pytest
@@ -22,7 +22,7 @@ from fastapi import FastAPI, status
from httpx import AsyncClient
from gns3server.compute.project import Project
from tests.utils import AsyncioMagicMock, asyncio_patch
from tests.utils import asyncio_patch
# The builtin Ethernet switch talks to uBridge (brctl/bridge modules) instead of
# the Dynamips hypervisor. These are the seams we stub so the routes can be
@@ -15,12 +15,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
import pytest
from gns3server.compute.notification_manager import NotificationManager
# @pytest.mark.asyncio
# async def test_notification_ws(compute_api):
@@ -16,7 +16,6 @@
import os
import uuid
from unittest.mock import patch
import pytest
from fastapi import FastAPI, status
@@ -241,7 +240,6 @@ class TestBatchNIOEdgeCases:
Dynamips.create_nio is async (returns a coroutine) unlike the sync
base version. The batch handler must await it.
"""
import asyncio as _asyncio
import inspect
class _FakeDynamips:
-1
View File
@@ -21,7 +21,6 @@ from fastapi import FastAPI, status
from httpx import AsyncClient
from sqlalchemy.ext.asyncio import AsyncSession
from gns3server.controller import Controller
from gns3server.db.repositories.rbac import RbacRepository
from gns3server.db.repositories.users import UsersRepository
from gns3server.schemas.controller.rbac import ACECreate
@@ -17,7 +17,6 @@
import json
import os
import shutil
import unittest.mock
import uuid
from pathlib import Path
-2
View File
@@ -21,8 +21,6 @@ import pytest
from fastapi import FastAPI, status
from httpx import AsyncClient
from gns3server.controller import Controller
from gns3server.utils.get_resource import get_resource
from gns3server.version import __version__
pytestmark = pytest.mark.asyncio