diff MoinMoin/_tests/_test_template.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 bb2e053067fb
children e5526f9c2113
line wrap: on
line diff
--- a/MoinMoin/_tests/_test_template.py	Thu Apr 19 12:55:07 2007 +0200
+++ b/MoinMoin/_tests/_test_template.py	Fri Apr 20 00:12:50 2007 +0200
@@ -10,7 +10,6 @@
 
 import unittest
 from MoinMoin import module_tested
-from MoinMoin._tests import TestConfig
 
 
 class SimplestTestCase(unittest.TestCase):
@@ -52,9 +51,8 @@
 
         Some test needs specific config values, or they will fail.
         """
-        self.config = TestConfig(self.request,
-                                 defaults=['this option', 'that option'],
-                                 another_option='non default value')
+        self.config = self.TestConfig(defaults=['this option', 'that option'],
+                                      another_option='non default value')
 
     def tearDown(self):
         """ Stuff that should run after each test