Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
 def tearDown(self):
     self.db.engine.pool.dispose()
     del self.db
     # setup normal database schema again
     setup_package(None)
Ejemplo n.º 5
0
 def tearDown(self):
     super(MigrationTest, self).tearDown()
     self.db.engine.pool.dispose()
     del self.db
     # setup normal database schema again
     setup_package(None)
Ejemplo n.º 6
0
 def tearDown(self):
     super(MigrationTest, self).tearDown()
     self.db.engine.pool.dispose()
     del self.db
     # setup normal database schema again
     setup_package(None)
Ejemplo n.º 7
0
def setup_package(module):
    from ichnaea.tests.base import setup_package
    return setup_package(module)