Mercurial > kallithea
comparison pylons_app/tests/__init__.py @ 470:935dddee7422 celery
merged with default
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 11 Sep 2010 03:42:57 +0200 |
parents | e94f4e54dc03 |
children | 6b934c9607e7 |
comparison
equal
deleted
inserted
replaced
467:3fc3ce53659b | 470:935dddee7422 |
---|---|
29 | 29 |
30 def __init__(self, *args, **kwargs): | 30 def __init__(self, *args, **kwargs): |
31 wsgiapp = pylons.test.pylonsapp | 31 wsgiapp = pylons.test.pylonsapp |
32 config = wsgiapp.config | 32 config = wsgiapp.config |
33 self.app = TestApp(wsgiapp) | 33 self.app = TestApp(wsgiapp) |
34 self.session = session | |
35 url._push_object(URLGenerator(config['routes.map'], environ)) | 34 url._push_object(URLGenerator(config['routes.map'], environ)) |
36 self.sa = meta.Session | 35 self.sa = meta.Session |
37 TestCase.__init__(self, *args, **kwargs) | 36 TestCase.__init__(self, *args, **kwargs) |
38 | 37 |
39 | 38 |