Пример #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")
Пример #2
0
def setup_package():
    init(test=True)
    setup_environ(test=True)
Пример #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)
Пример #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)