Files
brent.edwards 288246d9b5
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 17s
CI / build (pull_request) Successful in 27s
CI / quality (pull_request) Successful in 29s
CI / security (pull_request) Successful in 42s
CI / typecheck (pull_request) Successful in 42s
CI / e2e_tests (pull_request) Successful in 1m32s
CI / unit_tests (pull_request) Successful in 3m9s
CI / docker (pull_request) Successful in 9s
CI / integration_tests (pull_request) Successful in 3m34s
CI / coverage (pull_request) Successful in 5m54s
CI / benchmark-regression (pull_request) Successful in 37m11s
fix(test): remove eager tdd_test_helpers import from mocks __init__
The re-export of make_mock_scenario from features/mocks/__init__.py
caused ASV benchmark discovery to fail because tdd_test_helpers imports
behave.model.Status, which is unavailable in the ASV benchmark
virtualenv.  All callers already import via the full module path
(features.mocks.tdd_test_helpers), so the re-export was unnecessary.

ISSUES CLOSED: #628
2026-03-16 23:22:05 +00:00

28 lines
986 B
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 .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",
"TransientFailAuditService",
"parse_lsp_responses",
]