allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/7] allura git commit: [#6923] Remove duplicate assertion and add case for commit message
Date Tue, 23 Oct 2018 20:11:05 GMT
[#6923] Remove duplicate assertion and add case for commit message


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/2eae88d2
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/2eae88d2
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/2eae88d2

Branch: refs/heads/master
Commit: 2eae88d25e8be14478c75799194fda46083ebbcc
Parents: 09c04d9
Author: Shalitha <shalithasuranga@gmail.com>
Authored: Tue Oct 23 23:18:58 2018 +0530
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue Oct 23 19:56:51 2018 +0000

----------------------------------------------------------------------
 Allura/allura/tests/test_globals.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/2eae88d2/Allura/allura/tests/test_globals.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_globals.py b/Allura/allura/tests/test_globals.py
index 470286c..c9e68e2 100644
--- a/Allura/allura/tests/test_globals.py
+++ b/Allura/allura/tests/test_globals.py
@@ -757,8 +757,6 @@ class TestEmojis(unittest.TestCase):
         assert u'<p>\U0001F44D</p>' in output
         output = g.markdown.convert(':Bosnia_&_Herzegovina:')
         assert u'<p>\U0001F1E7\U0001F1E6</p>' in output
-        output = g.markdown.convert(':+1:')
-        assert u'<p>\U0001F44D</p>' in output
         output = g.markdown.convert(u':Åland_Islands:') # emoji code with non-asciii charactor
         assert u'<p>\U0001F1E6\U0001F1FD</p>' in output
 
@@ -778,6 +776,12 @@ class TestEmojis(unittest.TestCase):
         output = g.markdown.convert(u'~~~\n:Curaçao:\n~~~')
         assert u':Curaçao:' in output
 
+    def test_markdown_commit_with_emojis(self):
+        output = g.markdown_commit.convert('Thumbs up emoji :+1: wow!')
+        assert u'Thumbs up emoji \U0001F44D wow!' in output
+        output = g.markdown.convert(u'More emojis :+1::camel::three_o’clock: wow!')
+        assert u'More emojis \U0001F44D\U0001F42B\U0001F552 wow!' in output
+
 class TestHandlePaging(unittest.TestCase):
 
     def setUp(self):


Mime
View raw message