def mock_author_validate(): if request.json.get('orcid') == '0000-0002-1825-0097': return jsonify({ 'messages': { 'orcid': {}, }, }) return author_validate()
def mock_author_validate(): if request.json.get('orcid') == '1111-1111-1111-1111': return jsonify({ 'messages': { 'orcid': {}, }, }) return author_validate()