greco: send motifsrejet as None (#78264)
gitea/passerelle/pipeline/head There was a failure building this commit Details

This commit is contained in:
Emmanuel Cazenave 2023-06-08 12:27:41 +02:00
parent 166d58591a
commit 415e9f8a9e
2 changed files with 3 additions and 1 deletions

View File

@ -405,6 +405,8 @@ Response :
data = sudsobject_to_dict(resp)
else:
data = self._rest_call('getMail', params=params)
if not data.get('motifsrejet'):
data['motifsrejet'] = None
return {'data': data}
@endpoint(

View File

@ -521,7 +521,7 @@ def test_greco_rest_answer_ok(app, rest_conn):
json={
'iddemande': 'DWPQGCTS',
'idgreco': '538554',
'motifsrejet': None,
'motifsrejet': '',
'etat': None,
'message': {
'bcc': {'item': []},