Пример #1
0
    def setUp(cls):
        def setup(app):
            app._setObject('dummy1', DummyObject())
            app._setObject('dummy2', DummyObject())
            transaction.commit()

        utils.appcall(setup)
Пример #2
0
    def tearDown(cls):
        def cleanup(app):
            app._delObject('dummy1')
            app._delObject('dummy2')
            transaction.commit()

        utils.appcall(cleanup)
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 def caller(*args, **kw):
     utils.appcall(func, *args, **kw)
Пример #6
0
 def tearDown(cls):
     utils.appcall(cleanup_objects)
Пример #7
0
 def tearDown(cls):
     def cleanup(app):
         app._delObject('dummy1')
         app._delObject('dummy2')
         transaction.commit()
     utils.appcall(cleanup)
Пример #8
0
 def setUp(cls):
     def setup(app):
         app._setObject('dummy1', DummyObject())
         app._setObject('dummy2', DummyObject())
         transaction.commit()
     utils.appcall(setup)
Пример #9
0
 def caller(*args, **kw):
     utils.appcall(func, *args, **kw)
Пример #10
0
 def tearDown(cls):
     utils.appcall(cleanup_objects)