You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/10/19 13:37:27 UTC
[02/50] [abbrv] allura git commit: [#7871] ticket:852 Added a test
for sending notification on wiki page deletion
[#7871] ticket:852 Added a test for sending notification on wiki page deletion
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/4cc456f5
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/4cc456f5
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/4cc456f5
Branch: refs/heads/ib/7924
Commit: 4cc456f5646ca6ec329aa1cf52bc13d15e01cb6b
Parents: 6ba5e06
Author: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Authored: Mon Sep 21 15:41:54 2015 +0300
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed Sep 23 16:09:43 2015 +0000
----------------------------------------------------------------------
ForgeWiki/forgewiki/tests/functional/test_root.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/4cc456f5/ForgeWiki/forgewiki/tests/functional/test_root.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/tests/functional/test_root.py b/ForgeWiki/forgewiki/tests/functional/test_root.py
index 608045b..b716877 100644
--- a/ForgeWiki/forgewiki/tests/functional/test_root.py
+++ b/ForgeWiki/forgewiki/tests/functional/test_root.py
@@ -705,12 +705,12 @@ class TestRootController(TestController):
def test_page_delete(self):
self.app.post('/wiki/aaa/update', params={
'title': 'aaa',
- 'text': '',
+ 'text': '111',
'labels': '',
'viewable_by-0.id': 'all'})
self.app.post('/wiki/bbb/update', params={
'title': 'bbb',
- 'text': '',
+ 'text': '222',
'labels': '',
'viewable_by-0.id': 'all'})
response = self.app.get('/wiki/browse_pages/')
@@ -720,6 +720,8 @@ class TestRootController(TestController):
response = self.app.get('/wiki/browse_pages/')
assert 'aaa' in response
assert '?deleted=True">bbb' in response
+ n = M.Notification.query.get(subject="[test:wiki] test-admin removed page bbb")
+ assert '222' in n.text
def test_mailto_links(self):
self.app.get('/wiki/test_mailto/')