equal
deleted
inserted
replaced
178 for group in sorted(BASE_GROUPS): |
178 for group in sorted(BASE_GROUPS): |
179 session.execute('INSERT CWGroup X: X name %(name)s', |
179 session.execute('INSERT CWGroup X: X name %(name)s', |
180 {'name': unicode(group)}) |
180 {'name': unicode(group)}) |
181 create_user(session, login, pwd, 'managers') |
181 create_user(session, login, pwd, 'managers') |
182 session.commit() |
182 session.commit() |
|
183 repo.shutdown() |
183 # reloging using the admin user |
184 # reloging using the admin user |
184 config._cubes = None # avoid assertion error |
185 config._cubes = None # avoid assertion error |
185 repo, cnx = in_memory_cnx(config, login, password=pwd) |
186 repo, cnx = in_memory_cnx(config, login, password=pwd) |
186 # trigger vreg initialisation of entity classes |
187 # trigger vreg initialisation of entity classes |
187 config.cubicweb_appobject_path = set(('entities',)) |
188 config.cubicweb_appobject_path = set(('entities',)) |