Files
autocad-mcp-pro/tests/conftest.py
T
2026-04-27 12:20:57 +03:00

16 lines
335 B
Python

"""Shared fixtures for AutoCAD MCP tests."""
import pytest_asyncio
from backends.ezdxf_backend import EzdxfBackend
@pytest_asyncio.fixture
async def backend():
"""Create an ezdxf backend with a fresh empty document."""
b = EzdxfBackend()
await b.connect()
await b.drawing_new()
yield b
await b.disconnect()