changeset 3393:93aa3b53ddc9

add configuration tests currently only one checking that data_underlay_dir = None won't screw up right away
author Johannes Berg <johannes AT sipsolutions DOT net>
date Fri, 21 Mar 2008 17:09:51 +0100
parents 48b95abf3994
children 396d3434ab92
files MoinMoin/config/_tests/test_configs.py
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/config/_tests/test_configs.py	Fri Mar 21 17:09:51 2008 +0100
@@ -0,0 +1,13 @@
+from MoinMoin.config.multiconfig import DefaultConfig
+
+class NoUnderlay(DefaultConfig):
+    data_underlay_dir = None
+
+_tests = [NoUnderlay, ]
+
+class TestConfigs:
+    def testConfigs(self):
+        for cls in _tests:
+            cls.data_dir = self.request.cfg.data_dir
+            # quite a bad hack to make _importPlugin succeed
+            cls('MoinMoin')