lawsynth/python/lawsynth-server/tests/test_errors_api.py
2026-08-16 22:04:11 +03:00

7 lines
293 B
Python

from lawsynth_server.errors import NotFoundError
from lawsynth_server.errors_api import error_body
def test_error_body_has_machine_code_and_request_id():
assert error_body(NotFoundError("gone"), "r")["error"] == {"code": "not_found", "message": "gone", "details": {}, "request_id": "r"}