@@ -15,6 +15,7 @@ def test_quoted_reply(self):
1515 # pylint: disable=C8107
1616 message = partner .message_post (
1717 body = "demo message" ,
18+ subject = "demo subject" ,
1819 message_type = "email" ,
1920 partner_ids = self .env .ref ("base.partner_admin" ).ids ,
2021 )
@@ -34,7 +35,7 @@ def test_quoted_reply(self):
3435 )
3536 self .assertTrue (wizard .partner_ids )
3637 self .assertEqual (message .email_from , wizard .partner_ids .email_formatted )
37- self .assertEqual (action ["context" ]["default_subject" ], "Re: demo partner " )
38+ self .assertEqual (action ["context" ]["default_subject" ], "Re: demo subject " )
3839 # the onchange in the composer isn't triggered in tests, so we check for the
3940 # correct quote in the context
4041 email_quote = re .search ("<p>.*?</p>" , wizard .env .context ["quote_body" ]).group ()
@@ -117,7 +118,6 @@ def test_reply_with_existing_body(self):
117118 wizard .body = "Some body for testing purposes"
118119 self .assertTrue (wizard .partner_ids )
119120 self .assertEqual (message .email_from , wizard .partner_ids .email_formatted )
120- self .assertEqual (action ["context" ]["default_subject" ], "Re: demo partner" )
121121 # the onchange in the composer isn't triggered in tests, so we check for the
122122 # correct quote in the context
123123 email_quote = re .search ("<p>.*?</p>" , wizard .env .context ["quote_body" ]).group ()
0 commit comments