From af54db6c136138c66cf5ca72419989525a0baa5c Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 7 Aug 2018 15:09:08 +0100 Subject: Initial project layout for django --- tests/test_wiki.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 tests/test_wiki.py (limited to 'tests/test_wiki.py') 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) -- cgit v1.2.3