Use pytest-asyncio auto mode

This commit is contained in:
grossmj committed 2022-08-27 21:10:17 +02:00
1 parent 600c18f04b
commit fc7d5be736
28 files changed
+36 -60

No files matched your search

+2 -3
View File
@@ -16,7 +16,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import pytest
import pytest_asyncio
import asyncio
from tests.utils import asyncio_patch, AsyncioMagicMock
@@ -28,7 +27,7 @@ from gns3server.compute.traceng import TraceNG
from gns3server.compute.notification_manager import NotificationManager
@pytest_asyncio.fixture
@pytest.fixture
async def manager(port_manager):
m = TraceNG.instance()
@@ -36,7 +35,7 @@ async def manager(port_manager):
return m
@pytest_asyncio.fixture(scope="function")
@pytest.fixture(scope="function")
async def vm(compute_project, manager, ubridge_path):
vm = TraceNGVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0f", compute_project, manager)