aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_rst.py
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-05-20 21:11:18 +0200
committerGravatar GitHub <[email protected]>2018-05-20 21:11:18 +0200
commit687fedfffa402e049c59668f2a6248ad2ba17910 (patch)
tree834e909781213650b40508398ed5a9bef10686c5 /tests/test_rst.py
parentremove set -e (diff)
Tests directory (#73)
moves all tests into a testing directory and splits the tests into separate files
Diffstat (limited to 'tests/test_rst.py')
-rw-r--r--tests/test_rst.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_rst.py b/tests/test_rst.py
new file mode 100644
index 00000000..d6328bc4
--- /dev/null
+++ b/tests/test_rst.py
@@ -0,0 +1,11 @@
+import os
+import json
+from tests import SiteTest, app
+
+class RstEndpoints(SiteTest):
+ """ Test cases for staff subdomain """
+
+ def test_staff_view(self):
+ """ Check staff view redirects """
+ response = self.client.get('/', "http://"+app.config['SERVER_NAME'])
+ self.assertEqual(response.status_code, 200)