diff --git a/helpdesk_mgmt/tests/test_helpdesk_portal.py b/helpdesk_mgmt/tests/test_helpdesk_portal.py index e9954cde9e..4509ec8483 100644 --- a/helpdesk_mgmt/tests/test_helpdesk_portal.py +++ b/helpdesk_mgmt/tests/test_helpdesk_portal.py @@ -58,7 +58,7 @@ def _create_ticket(self, partner, ticket_title, **values): data.update(**values) return self.env["helpdesk.ticket"].create(data) - def _submit_ticket(self, **values): + def _submit_ticket(self, files=None, **values): data = { "category": self.env.ref("helpdesk_mgmt.helpdesk_category_1").id, "csrf_token": http.WebRequest.csrf_token(self), @@ -66,7 +66,7 @@ def _submit_ticket(self, **values): "description": "\n".join(self.new_ticket_desc_lines), } data.update(**values) - resp = self.url_open("/submitted/ticket", data=data) + resp = self.url_open("/submitted/ticket", data=data, files=files) self.assertEqual(resp.status_code, 200) @@ -93,3 +93,34 @@ def test_submit_ticket_02(self): "
" + "
".join(self.new_ticket_desc_lines) + "