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")
Example #2
0
def setup_package():
    init(test=True)
    setup_environ(test=True)
Example #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)
Example #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)