merge: testing → main (reconcile 2-week divergence)
This commit is contained in:
18
tests/webhook/conftest.py
Normal file
18
tests/webhook/conftest.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Shared fixtures for webhook worker tests."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import AsyncIterator
|
||||
|
||||
import pytest_asyncio
|
||||
|
||||
from decnet.bus.fake import FakeBus
|
||||
|
||||
|
||||
@pytest_asyncio.fixture
|
||||
async def fake_bus() -> AsyncIterator[FakeBus]:
|
||||
bus = FakeBus()
|
||||
await bus.connect()
|
||||
try:
|
||||
yield bus
|
||||
finally:
|
||||
await bus.close()
|
||||
Reference in New Issue
Block a user