Skip to content

Commit 66f3398

Browse files
committed
NRL-474 remove redundant test
1 parent 0cc69a6 commit 66f3398

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

layer/nrlf/core/tests/test_validators.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -599,34 +599,6 @@ def test_validate_category_coding_invalid_system():
599599
}
600600

601601

602-
def test_validate_author_no_author():
603-
validator = DocumentReferenceValidator()
604-
document_ref_data = load_document_reference_json("Y05868-736253002-Valid")
605-
606-
del document_ref_data["author"]
607-
608-
result = validator.validate(document_ref_data)
609-
610-
assert result.is_valid is False
611-
assert result.resource.id == "Y05868-99999-99999-999999"
612-
assert len(result.issues) == 1
613-
assert result.issues[0].model_dump(exclude_none=True) == {
614-
"severity": "error",
615-
"code": "required",
616-
"details": {
617-
"coding": [
618-
{
619-
"system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1",
620-
"code": "INVALID_RESOURCE",
621-
"display": "Invalid validation of resource",
622-
}
623-
]
624-
},
625-
"diagnostics": "The required field 'author' is missing",
626-
"expression": ["author"],
627-
}
628-
629-
630602
def test_validate_author_too_many_authors():
631603
validator = DocumentReferenceValidator()
632604
document_ref_data = load_document_reference_json("Y05868-736253002-Valid")

0 commit comments

Comments
 (0)