def setUp(cls): def setup(app): app._setObject('dummy1', DummyObject()) app._setObject('dummy2', DummyObject()) transaction.commit() utils.appcall(setup)
def tearDown(cls): def cleanup(app): app._delObject('dummy1') app._delObject('dummy2') transaction.commit() utils.appcall(cleanup)
def setUp(cls): # Repository configuration ExtFile.REPOSITORY_PATH = ["reposit"] ExtFile.REPOSITORY = configuration.FLAT ExtFile.NORMALIZE_CASE = configuration.KEEP ExtFile.ZODB_PATH = configuration.VIRTUAL ExtFile.COPY_OF_PROTECTION = configuration.ENABLED ExtFile.REPOSITORY_EXTENSIONS = configuration.MIMETYPE_REPLACE ExtFile.UNDO_POLICY = configuration.BACKUP_ON_DELETE utils.appcall(setup_objects)
def setUp(cls): # Repository configuration ExtFile.REPOSITORY_PATH = ['reposit'] ExtFile.REPOSITORY = configuration.FLAT ExtFile.NORMALIZE_CASE = configuration.KEEP ExtFile.ZODB_PATH = configuration.VIRTUAL ExtFile.COPY_OF_PROTECTION = configuration.ENABLED ExtFile.REPOSITORY_EXTENSIONS = configuration.MIMETYPE_REPLACE ExtImage.REPOSITORY_EXTENSIONS = configuration.MIMETYPE_REPLACE ExtFile.UNDO_POLICY = configuration.BACKUP_ON_DELETE utils.appcall(setup_objects)
def caller(*args, **kw): utils.appcall(func, *args, **kw)
def tearDown(cls): utils.appcall(cleanup_objects)