allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [16/18] allura git commit: [#8088] Update test to match new HTML
Date Wed, 13 Jul 2016 19:30:13 GMT
[#8088] Update test to match new HTML


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

Branch: refs/heads/master
Commit: 8fd25cf88d165913162924c7798eb46234642a67
Parents: 3e8f146
Author: Rohan Verma <rohanverma2004@gmail.com>
Authored: Fri Jun 24 20:53:57 2016 +0530
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Wed Jul 13 15:03:30 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/allura/blob/8fd25cf8/Allura/allura/tests/functional/test_discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_discuss.py b/Allura/allura/tests/functional/test_discuss.py
index d17b57b..d9fe37b 100644
--- a/Allura/allura/tests/functional/test_discuss.py
+++ b/Allura/allura/tests/functional/test_discuss.py
@@ -149,9 +149,9 @@ class TestDiscuss(TestDiscussBase):
 
     def test_spam_link(self):
         r = self._make_post('Test post')
-        assert '<span><i class="fa fa-exclamation" aria-hidden="true"></i>
Spam</span>' in r
+        assert '<span><i class="fa fa-exclamation" aria-hidden="true"></i></span>'
in r
         r = self.app.get('/wiki/Home/', extra_environ={'username': 'test-user-1'})
-        assert '<span><i class="fa fa-exclamation" aria-hidden="true"></i>
Spam</span>' not in r, 'User without moderate perm must not see Spam link'
+        assert '<span><i class="fa fa-exclamation" aria-hidden="true"></i></span>'
not in r, 'User without moderate perm must not see Spam link'
 
     @patch('allura.controllers.discuss.g.spam_checker.submit_spam')
     def test_moderate(self, submit_spam):


Mime
View raw message