generated from john/python-template
gpt-5.3-codesx review: Phase 5 Release Readiness & Contract Enforcement
Quality Gate / gate (push) Failing after 10s
Quality Gate / gate (push) Failing after 10s
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from transcription.errors import AppError
|
||||
from transcription.errors import ErrorCategory
|
||||
from transcription.ui.components.error_presenter import display_error_category
|
||||
|
||||
|
||||
def test_display_error_category_uses_canonical_taxonomy():
|
||||
assert display_error_category(AppError("x", category=ErrorCategory.USER_INPUT)) == "validation"
|
||||
assert display_error_category(AppError("x", category=ErrorCategory.NOT_FOUND)) == "not_found"
|
||||
assert display_error_category(AppError("x", category=ErrorCategory.CONFLICT)) == "conflict"
|
||||
assert display_error_category(AppError("x", category=ErrorCategory.EXTERNAL_PROVIDER)) == "external"
|
||||
assert display_error_category(AppError("x", category=ErrorCategory.INFRA_TRANSIENT)) == "timeout"
|
||||
assert display_error_category(AppError("x", category=ErrorCategory.INFRA_PERSISTENT)) == "internal"
|
||||
Reference in New Issue
Block a user