incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [29/50] git commit: [#6534] ticket:450 added test for <notextile>
Date Mon, 21 Oct 2013 21:05:03 GMT
[#6534] ticket:450 added test for <notextile>


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

Branch: refs/heads/cj/6686
Commit: 0a76622b2498ba558136e67e829614a988b9ea84
Parents: b07a1fe
Author: coldmind <sokandpal@yandex.ru>
Authored: Thu Oct 10 16:05:00 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue Oct 15 21:27:53 2013 +0000

----------------------------------------------------------------------
 .../forgeimporters/github/tests/test_wiki.py          | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/0a76622b/ForgeImporters/forgeimporters/github/tests/test_wiki.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/tests/test_wiki.py b/ForgeImporters/forgeimporters/github/tests/test_wiki.py
index edd9391..91528ab 100644
--- a/ForgeImporters/forgeimporters/github/tests/test_wiki.py
+++ b/ForgeImporters/forgeimporters/github/tests/test_wiki.py
@@ -18,7 +18,7 @@
 #       under the License.
 
 from unittest import TestCase
-from nose.tools import assert_equal
+from nose.tools import assert_equal, assert_not_in
 from mock import Mock, patch, call
 from ming.odm import ThreadLocalORMSession
 
@@ -459,6 +459,18 @@ some text and **[Tips n' Tricks]**
         assert_equal(f(source, 'test3.textile'), result)
 
 
+    def test_convert_textile_special_tag(self):
+        importer = GitHubWikiImporter()
+        importer.github_wiki_url = 'https://github.com/a/b/wiki'
+        importer.app = Mock()
+        importer.app.url = '/p/test/wiki/'
+        f = importer.convert_markup
+        source = u'*[[this checklist|Troubleshooting]]*'
+        result = u"**[this checklist](Troubleshooting)**"
+        assert_not_in('<notextile>', result)
+        assert_not_in('&#60;notextile&#62;', result)
+
+
 class TestGitHubWikiImportController(TestController, TestCase):
 
     url = '/p/%s/admin/ext/import/github-wiki/' % test_project_with_wiki


Mime
View raw message