Beispiel #1
0
    def setup_class(cls):
        if not is_migration_supported():
            raise SkipTest('Search not supported')

        # delete all objects manually
        rev = model.repo.new_revision()
        users = model.Session.query(model.User).all()
        uors = model.Session.query(model.UserObjectRole).all()
        ras = model.Session.query(model.RoleAction).all()
        for obj in users + uors + ras:
            obj.delete()
        model.repo.commit_and_remove()

        # db will already be on the latest version so
        # this should only reinstate the constant objects
        model.repo.init_const_data()
Beispiel #2
0
    def setup_class(cls):
        if not is_migration_supported():
            raise SkipTest('Search not supported')

        # delete all objects manually
        rev = model.repo.new_revision()
        users = model.Session.query(model.User).all()
        uors = model.Session.query(model.UserObjectRole).all()
        ras = model.Session.query(model.RoleAction).all()
        for obj in users + uors + ras:
            obj.delete()
        model.repo.commit_and_remove()

        # db will already be on the latest version so
        # this should only reinstate the constant objects
        model.repo.init_const_data()
Beispiel #3
0
 def setup_class(cls):
     if not is_migration_supported():
         raise SkipTest('Search not supported')
     model.repo.clean_db()
     model.repo.upgrade_db()
     model.repo.init_db()
Beispiel #4
0
 def setup_class(cls):
     if not is_migration_supported():
         raise SkipTest('Search not supported')
     model.repo.clean_db()
     model.repo.upgrade_db()
     model.repo.init_db()