Files
CoreRasurae 97c1007bb5 feat(events): wire domain services to emit missing EventBus events
Add TokenAuthMiddleware to emit AUTH_SUCCESS/AUTH_FAILURE with spec-aligned audit details and wire it through the DI container using server.token resolution.

Add Behave and Robot coverage for auth event emission and end-to-end audit persistence, and update audit subscriber producer notes and changelog.

ISSUES CLOSED: #714
2026-05-15 22:19:57 +01:00

30 lines
1.0 KiB
Python

"""Mock implementations for testing.
This package contains mock implementations used only during testing.
Following the mock placement rule, all mocks must exist only in the
features/ directory and never in production code (implementation_plan.md).
"""
from .fake_provider import FakeProviderInfo, FakeProviderRegistry
from .lsp_transport_mock import MockLspTransport, parse_lsp_responses
from .mock_ai_provider import MockAIProvider
from .mock_mcp_transport import MockMCPTransport
from .recording_event_bus import RecordingEventBus
from .transient_fail_audit_service import TransientFailAuditService
# NOTE: tdd_test_helpers is NOT re-exported here because it imports
# ``behave.model.Status`` which is unavailable in ASV benchmark
# environments. Import directly: ``from features.mocks.tdd_test_helpers
# import make_mock_scenario``
__all__ = [
"FakeProviderInfo",
"FakeProviderRegistry",
"MockAIProvider",
"MockLspTransport",
"MockMCPTransport",
"RecordingEventBus",
"TransientFailAuditService",
"parse_lsp_responses",
]