cubicweb/server/test/unittest_undo.py
branch3.25
changeset 12146 d540defa0591
parent 11200 8ddfed7a5981
child 12567 26744ad37953
equal deleted inserted replaced
12145:752b94ed9748 12146:d540defa0591
   376         with self.admin_access.client_cnx() as cnx:
   376         with self.admin_access.client_cnx() as cnx:
   377             c = cnx.create_entity('Card', title=u'hop', content=u'hop')
   377             c = cnx.create_entity('Card', title=u'hop', content=u'hop')
   378             txuuid = cnx.commit()
   378             txuuid = cnx.commit()
   379             p = cnx.create_entity('Personne', nom=u'louis', fiche=c)
   379             p = cnx.create_entity('Personne', nom=u'louis', fiche=c)
   380             cnx.commit()
   380             cnx.commit()
   381             integrityerror = self.repo.sources_by_uri['system'].dbhelper.dbapi_module.IntegrityError
   381             integrityerror = self.repo.system_source.dbhelper.dbapi_module.IntegrityError
   382             with self.assertRaises(integrityerror):
   382             with self.assertRaises(integrityerror):
   383                 cnx.undo_transaction(txuuid)
   383                 cnx.undo_transaction(txuuid)
   384 
   384 
   385 
   385 
   386     def test_undo_inline_rel_add_ko(self):
   386     def test_undo_inline_rel_add_ko(self):