def setup_package(module): # We do this here as early as possible in tests. # We only do it in tests, as the real celery processes should # run without the monkey patches applied. The gunicorn arbiter # patches its worker processes itself. from gevent import monkey monkey.patch_all() from ichnaea.tests.base import setup_package return setup_package(module)
def setup_package(module): # nosetests package level fixture setup # We do this here as early as possible in tests. # We only do it in tests, as the real celery processes should # run without the monkey patches applied. The gunicorn arbiter # patches its worker processes itself. from gevent import monkey monkey.patch_all() # enable all warnings in test mode warnings.resetwarnings() warnings.simplefilter('default') from ichnaea.tests.base import setup_package return setup_package(module)
def tearDown(self): self.db.engine.pool.dispose() del self.db # setup normal database schema again setup_package(None)
def tearDown(self): super(MigrationTest, self).tearDown() self.db.engine.pool.dispose() del self.db # setup normal database schema again setup_package(None)
def setup_package(module): from ichnaea.tests.base import setup_package return setup_package(module)