[test] add failing rql2sql test

AttributeError: _q_sqltable

Related to #5773364

authorJulien Cristau <julien.cristau@logilab.fr>
changeset5d8d32c539f8
branchdefault
phasedraft
hiddenno
parent revision#3c66c31ebdd2 fix: UX when migractions failed to get its connection
child revision<not specified>
files modified by this revision
cubicweb/server/test/unittest_rql2sql.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1438185180 -7200
# Wed Jul 29 17:53:00 2015 +0200
# Node ID 5d8d32c539f815b8489c88643c90682b575a870d
# Parent 3c66c31ebdd2394ea6a254563c8bb662004aaf7e
[test] add failing rql2sql test

AttributeError: _q_sqltable

Related to #5773364

diff --git a/cubicweb/server/test/unittest_rql2sql.py b/cubicweb/server/test/unittest_rql2sql.py
@@ -859,10 +859,15 @@
1 
2      ('Any N,A WHERE N inline1 A?',
3       '''SELECT _N.cw_eid, _N.cw_inline1
4  FROM cw_Note AS _N'''),
5 
6 +    # I don't know what the SQL should actually look like...
7 +    ('Any P WHERE A? require_permission X, P is Personne, P inline2 A',
8 +     '''SELECT _P.cw_eid
9 +FROM require_permission_relation AS rel_require_permission0 LEFT OUTER JOIN cw_Personne as _P ON (rel_require_permission0.eid_from = _P.cw_inline2)'''),
10 +
11      ('Any SN WHERE X from_state S?, S name SN',
12       '''SELECT _S.cw_name
13  FROM cw_TrInfo AS _X LEFT OUTER JOIN cw_State AS _S ON (_X.cw_from_state=_S.cw_eid)'''
14      ),
15