def test_certificate_edit_schema(session): from lemur.certificates.schemas import CertificateEditInputSchema input_data = {"owner": "*****@*****.**"} data, errors = CertificateEditInputSchema().load(input_data) assert not errors assert len(data["notifications"]) == 3 assert data["roles"][0].name == input_data["owner"]
def test_certificate_edit_schema(session): from lemur.certificates.schemas import CertificateEditInputSchema input_data = {'owner': '*****@*****.**'} data, errors = CertificateEditInputSchema().load(input_data) assert len(data['notifications']) == 3