cubicweb/test/unittest_repoapi.py
changeset 12043 b8d2e6b9f548
parent 11824 d7ecf6dab085
--- a/cubicweb/test/unittest_repoapi.py	Fri Mar 10 18:00:13 2017 +0100
+++ b/cubicweb/test/unittest_repoapi.py	Tue Mar 14 11:07:58 2017 +0100
@@ -56,7 +56,7 @@
         """Check that ClientConnection requires explicit open and close
         """
         access = self.admin_access
-        cltcnx = Connection(access._session)
+        cltcnx = Connection(access._repo, access._user)
         # connection not open yet
         with self.assertRaises(ProgrammingError):
             cltcnx.execute('Any X WHERE X is CWUser')