This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 1ebdafa07 [#8507] test fix
1ebdafa07 is described below
commit 1ebdafa07f56477d8cf6a1decc20b47b7f1541a6
Author: Guillermo Cruz <[email protected]>
AuthorDate: Fri May 5 11:27:55 2023 -0500
[#8507] test fix
---
Allura/allura/templates/mail/Ticket.txt | 2 +-
ForgeTracker/forgetracker/tests/functional/test_root.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Allura/allura/templates/mail/Ticket.txt
b/Allura/allura/templates/mail/Ticket.txt
index abe38af83..fc5b4ae30 100644
--- a/Allura/allura/templates/mail/Ticket.txt
+++ b/Allura/allura/templates/mail/Ticket.txt
@@ -20,7 +20,7 @@
---
-** [{{data.app_config.options.mount_point}}:#{{data.ticket_num}}]
{{data.summary|e}}**
+**[{{data.app_config.options.mount_point}}:#{{data.ticket_num}}]
{{data.summary|e}}**
**Status:** {{data.status}}
{% for f in data.globals.milestone_fields -%}
diff --git a/ForgeTracker/forgetracker/tests/functional/test_root.py
b/ForgeTracker/forgetracker/tests/functional/test_root.py
index 73a294bb5..2d869f42d 100644
--- a/ForgeTracker/forgetracker/tests/functional/test_root.py
+++ b/ForgeTracker/forgetracker/tests/functional/test_root.py
@@ -2514,7 +2514,7 @@ class TestFunctionalController(TrackerTestController):
assert (email.kwargs.subject ==
'[test:bugs] #1 test <h2> ticket')
text = email.kwargs.text
- assert '** [bugs:#1] test <h2> ticket**' in text
+ assert '**[bugs:#1] test <h2> ticket**' in text
mail_tasks.sendmail(
fromaddr=str(c.user._id),
destinations=[str(c.user._id)],
@@ -2528,11 +2528,11 @@ class TestFunctionalController(TrackerTestController):
# check subject
assert 'Subject: [test:bugs] #1 test <h2> ticket' in body
# check html, need tags escaped
- assert ('<p><strong> <a class="alink"
href="http://localhost/p/test/bugs/1/">[bugs:#1]</a>'
+ assert ('<p><strong><a class="alink"
href="http://localhost/p/test/bugs/1/">[bugs:#1]</a>'
' test <h2> ticket</strong></p>' in
body)
# check plaintext (ok to have "html" tags)
- assert '** [bugs:#1] test <h2> ticket**' in body
+ assert '**[bugs:#1] test <h2> ticket**' in body
@patch('forgetracker.search.query_filter_choices', autospec=True)
def test_multiselect(self, query_filter_choices):