Exemplo n.º 1
0
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")
Exemplo n.º 2
0
def setup_package():
    init(test=True)
    setup_environ(test=True)
Exemplo n.º 3
0
 def wrapper(*args, **kwargs):
     # clean the db
     if hasattr(db._connection, 'x'):
         delattr(db._connection, 'x')
         db.init(test=True)
     return fun(*args, **kwargs)
Exemplo n.º 4
0
 def wrapper(*args, **kwargs):
     # clean the db
     if hasattr(db._connection, 'x'):
         delattr(db._connection, 'x')
         db.init(test=True)
     return fun(*args, **kwargs)