def setup_package(): init(test=True) setup_environ() # XXX: needed to run old unit tests that require the compute class which # has been moved to the Knot plugin from grokcore.component.testing import grok grok("opennode.oms.tests.test_compute")
def setup_package(): init(test=True) setup_environ(test=True)
def wrapper(*args, **kwargs): # clean the db if hasattr(db._connection, 'x'): delattr(db._connection, 'x') db.init(test=True) return fun(*args, **kwargs)