@@ -139,14 +139,14 @@ async def test_notify_infraction(self, send_private_embed_mock):
139139 type = "Ban" ,
140140 expires = "2020-02-26 09:20 (23 hours and 59 minutes)" ,
141141 reason = "No reason provided."
142- ),
142+ ) + utils . INFRACTION_APPEAL_SERVER_FOOTER ,
143143 colour = Colours .soft_red ,
144144 url = utils .RULES_URL
145145 ).set_author (
146146 name = utils .INFRACTION_AUTHOR_NAME ,
147147 url = utils .RULES_URL ,
148148 icon_url = Icons .token_removed
149- ). set_footer ( text = utils . INFRACTION_APPEAL_MODMAIL_FOOTER ) ,
149+ ),
150150 "send_result" : True
151151 },
152152 {
@@ -157,14 +157,14 @@ async def test_notify_infraction(self, send_private_embed_mock):
157157 type = "Warning" ,
158158 expires = "N/A" ,
159159 reason = "Test reason."
160- ),
160+ ) + utils . INFRACTION_APPEAL_MODMAIL_FOOTER ,
161161 colour = Colours .soft_red ,
162162 url = utils .RULES_URL
163163 ).set_author (
164164 name = utils .INFRACTION_AUTHOR_NAME ,
165165 url = utils .RULES_URL ,
166166 icon_url = Icons .token_removed
167- ). set_footer ( text = utils . INFRACTION_APPEAL_MODMAIL_FOOTER ) ,
167+ ),
168168 "send_result" : False
169169 },
170170 # Note that this test case asserts that the DM that *would* get sent to the user is formatted
@@ -177,14 +177,14 @@ async def test_notify_infraction(self, send_private_embed_mock):
177177 type = "Note" ,
178178 expires = "N/A" ,
179179 reason = "No reason provided."
180- ),
180+ ) + utils . INFRACTION_APPEAL_MODMAIL_FOOTER ,
181181 colour = Colours .soft_red ,
182182 url = utils .RULES_URL
183183 ).set_author (
184184 name = utils .INFRACTION_AUTHOR_NAME ,
185185 url = utils .RULES_URL ,
186186 icon_url = Icons .defcon_denied
187- ). set_footer ( text = utils . INFRACTION_APPEAL_MODMAIL_FOOTER ) ,
187+ ),
188188 "send_result" : False
189189 },
190190 {
@@ -195,14 +195,14 @@ async def test_notify_infraction(self, send_private_embed_mock):
195195 type = "Mute" ,
196196 expires = "2020-02-26 09:20 (23 hours and 59 minutes)" ,
197197 reason = "Test"
198- ),
198+ ) + utils . INFRACTION_APPEAL_MODMAIL_FOOTER ,
199199 colour = Colours .soft_red ,
200200 url = utils .RULES_URL
201201 ).set_author (
202202 name = utils .INFRACTION_AUTHOR_NAME ,
203203 url = utils .RULES_URL ,
204204 icon_url = Icons .defcon_denied
205- ). set_footer ( text = utils . INFRACTION_APPEAL_MODMAIL_FOOTER ) ,
205+ ),
206206 "send_result" : False
207207 },
208208 {
@@ -213,14 +213,14 @@ async def test_notify_infraction(self, send_private_embed_mock):
213213 type = "Mute" ,
214214 expires = "N/A" ,
215215 reason = "foo bar" * 4000
216- )[:4093 ] + "..." ,
216+ )[:4093 - utils . LONGEST_EXTRAS ] + "..." + utils . INFRACTION_APPEAL_MODMAIL_FOOTER ,
217217 colour = Colours .soft_red ,
218218 url = utils .RULES_URL
219219 ).set_author (
220220 name = utils .INFRACTION_AUTHOR_NAME ,
221221 url = utils .RULES_URL ,
222222 icon_url = Icons .defcon_denied
223- ). set_footer ( text = utils . INFRACTION_APPEAL_MODMAIL_FOOTER ) ,
223+ ),
224224 "send_result" : True
225225 }
226226 ]
0 commit comments