move test files out of py lib proper

* separate all tests from plugins
* simplify implicit inclusion of plugins under test
* have test_initpkg perform direct checks instead of yielding tests
* fix example tests for 3k

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-09-06 16:59:39 +02:00
parent 5cf27098cf
commit c8119d89b6
148 changed files with 1162 additions and 1177 deletions

View File

@@ -9,7 +9,7 @@ class TestStateFullThing:
cls.classcount -= 1
def setup_method(self, method):
self.id = eval(method.func_name[5:])
self.id = eval(method.__name__[5:])
def test_42(self):
assert self.classcount == 1

View File

@@ -1,5 +1,5 @@
from myapp import MyApp
from mysetup.myapp import MyApp
def pytest_funcarg__mysetup(request):
return MySetup()

View File

@@ -1,5 +1,5 @@
import py
from myapp import MyApp
from mysetup2.myapp import MyApp
def pytest_funcarg__mysetup(request):
return MySetup(request)