res self client post reverse communication-list sub_matter sub_matter

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
res = self.client.post(reverse('communication-list'), {
'sub_matter': sub_matter.pk,
'subject': 'Test inv',
'body': 'Test ext emails body',
'email_recipients': [
{'email': 'email1@test.com'},
{'email': 'email2@test.com'},
{'email': 'email3@test.com'}
]
}, format='json')