Commit b6ec51e8 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

eidkey argument of execute deprecated in 3.8

--HG--
branch : stable
parent a0a27c3411f6
......@@ -57,7 +57,7 @@ class ChangeStateHooksTC(CubicWebTC):
{'subject': subject, 'headers': self.msg})[0][0]
self.commit()
userstate = self.execute('Any SN WHERE X in_state S, S name SN, X eid %(x)s',
{'x': u.eid}, 'x')[0][0]
{'x': u.eid})[0][0]
self.assertEqual(userstate, 'deactivated')
self.assertEqual(u.cw_adapt_to('IWorkflowable').latest_trinfo().creator.login, 'admin')
......@@ -72,7 +72,7 @@ class ChangeStateHooksTC(CubicWebTC):
{'subject': subject, 'headers': self.msg})[0][0]
self.commit()
userstate = self.execute('Any SN WHERE X in_state S, S name SN, X eid %(x)s',
{'x': u.eid}, 'x')[0][0]
{'x': u.eid})[0][0]
self.assertEqual(userstate, 'deactivated')
self.assertEqual(u.cw_adapt_to('IWorkflowable').latest_trinfo().creator.login, 'anon')
......@@ -86,7 +86,7 @@ class ChangeStateHooksTC(CubicWebTC):
{'subject': subject, 'headers': self.msg})[0][0]
self.commit()
userstate = self.execute('Any SN WHERE X in_state S, S name SN, X eid %(x)s',
{'x': ueid}, 'x')[0][0]
{'x': ueid})[0][0]
self.assertEqual(userstate, 'activated')
def test_email_change_state_unexistant_eid(self):
......@@ -99,7 +99,7 @@ class ChangeStateHooksTC(CubicWebTC):
{'subject': subject, 'headers': self.msg})[0][0]
self.commit()
userstate = self.execute('Any SN WHERE X in_state S, S name SN, X eid %(x)s',
{'x': ueid}, 'x')[0][0]
{'x': ueid})[0][0]
self.assertEqual(userstate, 'activated')
def test_email_change_state_unexistant_transition(self):
......@@ -112,7 +112,7 @@ class ChangeStateHooksTC(CubicWebTC):
{'subject': subject, 'headers': self.msg})[0][0]
self.commit()
userstate = self.execute('Any SN WHERE X in_state S, S name SN, X eid %(x)s',
{'x': ueid}, 'x')[0][0]
{'x': ueid})[0][0]
self.assertEqual(userstate, 'activated')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment