aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_wiki.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_wiki.py')
-rw-r--r--tests/test_wiki.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/test_wiki.py b/tests/test_wiki.py
deleted file mode 100644
index e16152a1..00000000
--- a/tests/test_wiki.py
+++ /dev/null
@@ -1,34 +0,0 @@
-import os
-from tests import SiteTest, app
-
-class WikiEndpoints(SiteTest):
- """ Test cases for the wiki subdomain """
- def test_wiki_edit(self):
- """Test that the wiki edit page redirects to login"""
- response = self.client.get("/edit/page", app.config['WIKI_SUBDOMAIN'])
- self.assertEqual(response.status_code, 302)
-
- def test_wiki_edit_post_empty_request(self):
- """Empty request should redirect to login"""
- response = self.client.post("/edit/page", app.config['WIKI_SUBDOMAIN'])
- self.assertEqual(response.status_code, 302)
-
- def test_wiki_history(self):
- """Test the history show"""
- response = self.client.get("/history/show/blahblah-non-existant-page", app.config['WIKI_SUBDOMAIN'])
- self.assertEqual(response.status_code, 404) # Test that unknown routes 404
-
- def test_wiki_diff(self):
- """Test whether invalid revision IDs error"""
- response = self.client.get("/history/compare/ABC/XYZ", app.config['WIKI_SUBDOMAIN'])
- self.assertEqual(response.status_code, 404) # Test that unknown revisions 404
-
- def test_wiki_special(self):
- """Test whether invalid revision IDs error"""
- response = self.client.get("/special", app.config['WIKI_SUBDOMAIN'])
- self.assertEqual(response.status_code, 200)
-
- def test_wiki_special_all_pages(self):
- """Test whether invalid revision IDs error"""
- response = self.client.get("/special/all_pages", app.config['WIKI_SUBDOMAIN'])
- self.assertEqual(response.status_code, 200)