diff tests/wikiconfig.py @ 2006:1339d6fdc4ff

Changed tests to use py.test. Also changed the semantics a bit - the test wiki directory is only created freshly if it does not exist.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Fri, 20 Apr 2007 00:12:50 +0200
parents 767109c48208
children 01f05e74aa9c
line wrap: on
line diff
--- a/tests/wikiconfig.py	Thu Apr 19 12:55:07 2007 +0200
+++ b/tests/wikiconfig.py	Fri Apr 20 00:12:50 2007 +0200
@@ -6,14 +6,19 @@
 @license: GNU GPL, see COPYING for details.
 """
 
+import os
+
 from MoinMoin.config.multiconfig import DefaultConfig
 
 
 class Config(DefaultConfig):
     sitename = u'Developer Test Wiki'
     logo_string = sitename
-    data_dir = './tests/wiki/data/'
-    data_underlay_dir = './tests/wiki/underlay/'
+
+    _base_dir = os.path.join(os.path.dirname(__file__), 'wiki')
+    data_dir = os.path.join(_base_dir, "data")
+    data_underlay_dir = os.path.join(_base_dir, "underlay")
+
     show_hosts = 1                  
     # used to check if it is really a wiki we may modify 
     is_test_wiki = True