You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2019/11/13 16:33:49 UTC
[allura] 06/06: [#8340] some wiki increased coverage
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch db/8340
in repository https://gitbox.apache.org/repos/asf/allura.git
commit a91ab3c062003a98e66eec97b744775b80d69e55
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Wed Nov 13 11:33:02 2019 -0500
[#8340] some wiki increased coverage
---
ForgeWiki/forgewiki/tests/functional/test_root.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/ForgeWiki/forgewiki/tests/functional/test_root.py b/ForgeWiki/forgewiki/tests/functional/test_root.py
index d79937a..54fa613 100644
--- a/ForgeWiki/forgewiki/tests/functional/test_root.py
+++ b/ForgeWiki/forgewiki/tests/functional/test_root.py
@@ -773,6 +773,18 @@ class TestRootController(TestController):
n = M.Notification.query.get(subject="[test:wiki] test-admin removed page bbb")
assert '222' in n.text
+ # view deleted page
+ response = response.click('bbb')
+ assert '(deleted)' in response
+ deletedpath = response.request.path_info
+
+ # undelete it
+ undelete_url = deletedpath + 'undelete'
+ response = self.app.post(undelete_url)
+ assert_equal(response.json, {'location': './edit'})
+ response = self.app.get(deletedpath + 'edit')
+ assert 'Edit bbb' in response
+
def test_mailto_links(self):
self.app.get('/wiki/test_mailto/')
params = {