2009-04-14 01:51:42 +08:00
|
|
|
|
|
|
|
from myapp import MyApp
|
|
|
|
|
|
|
|
class ConftestPlugin:
|
|
|
|
def pytest_funcarg__mysetup(self, request):
|
2009-05-13 07:47:32 +08:00
|
|
|
return MySetup(request)
|
2009-04-14 01:51:42 +08:00
|
|
|
|
|
|
|
class MySetup:
|
2009-05-13 07:47:32 +08:00
|
|
|
def __init__(self, request):
|
|
|
|
self.config = request.config
|
2009-04-14 01:51:42 +08:00
|
|
|
def myapp(self):
|
|
|
|
return MyApp()
|