diff MoinMoin/conftest.py @ 4029:3d5c4ebe8f34

tests: do not use TestConfig class name because py.test thinks that is a test
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 24 Aug 2008 16:35:51 +0200
parents 5c78ac77c98f
children 8a1c8fb7c689
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Sun Aug 24 16:01:27 2008 +0200
+++ b/MoinMoin/conftest.py	Sun Aug 24 16:35:51 2008 +0200
@@ -12,7 +12,7 @@
 classes by the framework.
 
 Tests that require a certain configuration, like section_numbers = 1, must
-use a TestConfig to create the required configuration before the test.
+use a Config class to define the required configuration within the test class.
 
 @copyright: 2005 MoinMoin:NirSoffer,
             2007 MoinMoin:AlexanderSchremmer,
@@ -97,8 +97,8 @@
 
     def setup(self):
         cls = self.obj
-        if hasattr(cls, 'TestConfig'):
-            cls.request = init_test_request(given_config=cls.TestConfig)
+        if hasattr(cls, 'Config'):
+            cls.request = init_test_request(given_config=cls.Config)
         else:
             cls.request = self.parent.request
         super(MoinClassCollector, self).setup()