allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject allura git commit: [#7855] Updated a test to work with Pygments version 1.6 and higher
Date Tue, 14 Apr 2015 20:19:43 GMT
Repository: allura
Updated Branches:
  refs/heads/hs/7855 [created] ab8423fd9


[#7855] Updated a test to work with Pygments version 1.6 and higher


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

Branch: refs/heads/hs/7855
Commit: ab8423fd9170c83b9378c77d63344a044f54b4d0
Parents: 747cad0
Author: Heith Seewald <hseewald@slashdotmedia.com>
Authored: Tue Apr 14 19:16:25 2015 +0000
Committer: Heith Seewald <hseewald@slashdotmedia.com>
Committed: Tue Apr 14 19:17:03 2015 +0000

----------------------------------------------------------------------
 Allura/allura/tests/test_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/ab8423fd/Allura/allura/tests/test_utils.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_utils.py b/Allura/allura/tests/test_utils.py
index 06579c5..7903ba3 100644
--- a/Allura/allura/tests/test_utils.py
+++ b/Allura/allura/tests/test_utils.py
@@ -25,7 +25,7 @@ from os import path
 
 from webob import Request
 from mock import Mock, patch
-from nose.tools import assert_equal, assert_raises
+from nose.tools import assert_equal, assert_raises, assert_in
 from pygments import highlight
 from pygments.lexers import get_lexer_for_filename
 from tg import config
@@ -201,7 +201,7 @@ class TestLineAnchorCodeHtmlFormatter(unittest.TestCase):
         hl_code = highlight(code, lexer, formatter)
         assert '<div class="codehilite">' in hl_code
         assert '<div id="l1" class="code_block">' in hl_code
-        assert '<span class="lineno">1</span>' in hl_code
+        assert_in('<span class="lineno">1 </span>', hl_code)
 
 
 class TestIsTextFile(unittest.TestCase):


Mime
View raw message