[ldapfeed, test] use a safe internal session, as in real life
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 03 May 2012 15:50:03 +0200
changeset 8385 5a261bac2962
parent 8384 98782f17dd84
child 8386 249b21722e5e
[ldapfeed, test] use a safe internal session, as in real life
server/test/unittest_ldapuser.py
--- a/server/test/unittest_ldapuser.py	Thu May 03 15:48:54 2012 +0200
+++ b/server/test/unittest_ldapuser.py	Thu May 03 15:50:03 2012 +0200
@@ -105,7 +105,7 @@
         session.create_entity('CWSource', name=u'ldapuser', type=u'ldapfeed', parser=u'ldapfeed',
                               url=URL, config=CONFIG)
         session.commit()
-        isession = session.repo.internal_session()
+        isession = session.repo.internal_session(safe=True)
         lfsource = isession.repo.sources_by_uri['ldapuser']
         stats = lfsource.pull_data(isession, force=True, raise_on_error=True)