Skip to content

Commit

Permalink
Merge pull request #273 from Metaswitch/dependabot/pip/mistletoe-1.2.1
Browse files Browse the repository at this point in the history
Bump mistletoe from 1.1.0 to 1.2.1
  • Loading branch information
maxdymond authored Oct 4, 2023
2 parents a69e6cf + 62a4c6b commit 26d7ae7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions announcer/teamschangelogrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import collections
import logging
from mistletoe.html_renderer import HTMLRenderer
from mistletoe.html_renderer import HtmlRenderer
from typing import List, Dict

log = logging.getLogger(__name__)
Expand All @@ -25,7 +25,7 @@ def __next__(self):
return current


class TeamsChangeLogRenderer(HTMLRenderer):
class TeamsChangeLogRenderer(HtmlRenderer):
def __init__(self, version: str, *extras):
super().__init__(*extras)
self.version = version
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions tests/test_announce.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def test_announce_teams(httpserver):
"title": "testchangelog_formatting 0.1.0",
"sections": [
{
"text": '<h2><a href="https://github.com/Metaswitch/announcer/tree/0.1.0">0.1.0</a> - 2018-09-26</h2><h3>Tested</h3><ul>\n<li>Testing <code>singlequote</code> works properly.</li>\n<li>Testing <code>triplequote</code> works properly.</li>\n<li>Testing <del>strikethrough</del> works properly.</li>\n<li>Testing <em>italics</em> work properly.</li>\n<li>Testing <strong>bolds</strong> work properly.</li>\n</ul><blockquote>\n<p>Testing quotes work properly</p>\n</blockquote><ul>\n<li>Testing top level list\n<ul>\n<li>Testing mid level list1</li>\n<li>Testing mid level list2</li>\n</ul>\n</li>\n<li>Testing autolink as <a href="http://www.example.com/autolink">http://www.example.com/autolink</a></li>\n<li>Testing normal link as <a href="http://www.example.com/normallink">Normal &amp; Link</a></li>\n<li>Testing images as <img src="http://www.example.com/icon48.png" alt="Test Image" /></li>\n</ul><hr /><ol>\n<li>Numbered list</li>\n<li>Second entry</li>\n</ol><pre><code class="language-javascript">var s = &quot;JavaScript syntax highlighting&quot;;\nalert(s);\n</code></pre><ol start="2">\n<li>List that starts at 2</li>\n</ol>'
"text": '<h2><a href="https://github.com/Metaswitch/announcer/tree/0.1.0">0.1.0</a> - 2018-09-26</h2><h3>Tested</h3><ul>\n<li>Testing <code>singlequote</code> works properly.</li>\n<li>Testing <code>triplequote</code> works properly.</li>\n<li>Testing <del>strikethrough</del> works properly.</li>\n<li>Testing <em>italics</em> work properly.</li>\n<li>Testing <strong>bolds</strong> work properly.</li>\n</ul><blockquote>\n<p>Testing quotes work properly</p>\n</blockquote><ul>\n<li>Testing top level list\n<ul>\n<li>Testing mid level list1</li>\n<li>Testing mid level list2</li>\n</ul>\n</li>\n<li>Testing autolink as <a href="http://www.example.com/autolink">http://www.example.com/autolink</a></li>\n<li>Testing normal link as <a href="http://www.example.com/normallink">Normal &amp; Link</a></li>\n<li>Testing images as <img src="http://www.example.com/icon48.png" alt="Test Image" /></li>\n</ul><hr /><ol>\n<li>Numbered list</li>\n<li>Second entry</li>\n</ol><pre><code class="language-javascript">var s = "JavaScript syntax highlighting";\nalert(s);\n</code></pre><ol start="2">\n<li>List that starts at 2</li>\n</ol>'
}
],
"potentialAction": [
Expand Down Expand Up @@ -287,6 +287,7 @@ def test_announce_teams(httpserver):
changelogfile=os.path.join(TEST_DIR, "testchangelog_formatting.md"),
projectname="testchangelog_formatting",
target=announcer.TargetTypes.TEAMS,
compatibility_teams_sections=False,
)

announcer.announce(args)
Expand Down Expand Up @@ -320,7 +321,7 @@ def test_announce_teams_compatibility(httpserver):
"text": "<ol>\n<li>Numbered list</li>\n<li>Second entry</li>\n</ol>"
},
{
"text": '<pre><code class="language-javascript">var s = &quot;JavaScript syntax highlighting&quot;;\nalert(s);\n</code></pre>'
"text": '<pre><code class="language-javascript">var s = "JavaScript syntax highlighting";\nalert(s);\n</code></pre>'
},
{"text": '<ol start="2">\n<li>List that starts at 2</li>\n</ol>'},
],
Expand Down

0 comments on commit 26d7ae7

Please sign in to comment.