Skip to content

Commit 3456619

Browse files
committed
[#8596] test updates
1 parent 8df8898 commit 3456619

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ForgeDiscussion/forgediscussion/tests/functional/test_forum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def test_notifications_escaping(self):
518518
r = self.app.post('/discussion/save_new_topic', params=params)
519519
n = M.Notification.query.find(
520520
dict(subject="[test:discussion] this is <h2> o'clock")).first()
521-
assert '---\n\n[this is &lt;h2&gt; o&#39;clock]' in n.text
521+
assert '---\n\n[this is &lt;h2&gt; o\'clock]' in n.text
522522

523523
def _set_anon_allowed(self):
524524
r = self.app.get('/admin/discussion/permissions')

ForgeTracker/forgetracker/data/ticket_changed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{% elif key == 'labels' -%}
3636
- **{{key}}**: {{', '.join(oldv) |escape_markdown }} --> {{', '.join(newv) |escape_markdown }}
3737
{% else -%}
38-
- **{{key}}**: {{oldv |escape_markdown if oldv is not none else ''}} --> {{newv |escape_markdown if newv is not none else ''}}
38+
- **{{key}}**: {{ (oldv|string) |escape_markdown if oldv is not none else ''}} --> {{ (newv|string) |escape_markdown if newv is not none else ''}}
3939
{% endif -%}
4040
{% endif -%}
4141
{% endfor -%}

ForgeTracker/forgetracker/tests/functional/test_root.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ def test_new_ticket_notification_contains_attachments(self):
17111711
).first()
17121712
expected_text = (
17131713
'**Attachments:**\n\n'
1714-
'- [tést_root.py]'
1714+
'- [tést\\_root.py]'
17151715
'(http://localhost/p/test/bugs/1/attachment/t%C3%A9st_root.py)')
17161716
assert expected_text in email.kwargs['text']
17171717

0 commit comments

Comments
 (0)