Skip to content

Commit 16f50c6

Browse files
committed
NRL-474 fix test
1 parent 9c867bd commit 16f50c6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

layer/nrlf/core/tests/test_request.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,23 @@ def test_parse_body_invalid_json():
274274
"diagnostics": "Request body could not be parsed (type: Input should be an object)",
275275
"expression": ["type"],
276276
},
277+
{
278+
"code": "invalid",
279+
"details": {
280+
"coding": [
281+
{
282+
"code": "MESSAGE_NOT_WELL_FORMED",
283+
"display": "Message not well formed",
284+
"system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1",
285+
},
286+
],
287+
},
288+
"diagnostics": "Request body could not be parsed (author: Field required)",
289+
"expression": [
290+
"author",
291+
],
292+
"severity": "error",
293+
},
277294
{
278295
"severity": "error",
279296
"code": "invalid",

0 commit comments

Comments
 (0)