# HG changeset patch # User Sylvain Thénault # Date 1266952960 -3600 # Node ID 0288f8e5460cc3da5c67b6e6d0cc22168f9a42b1 # Parent 00d139c5f386de7d948c5fe44b01f21198abf9b9 fix tests diff -r 00d139c5f386 -r 0288f8e5460c test/unittest_entity.py --- a/test/unittest_entity.py Tue Feb 23 18:21:30 2010 +0100 +++ b/test/unittest_entity.py Tue Feb 23 20:22:40 2010 +0100 @@ -188,14 +188,14 @@ Personne.fetch_attrs, Personne.fetch_order = fetch_config(('nom', )) # XXX self.assertEquals(p.related_rql('evaluee'), - 'Any X,AA ORDERBY Z DESC ' - 'WHERE X modification_date Z, E eid %(x)s, E evaluee X, ' + 'Any X,AA ORDERBY AA DESC ' + 'WHERE E eid %(x)s, E evaluee X, ' 'X modification_date AA') tag = self.vreg['etypes'].etype_class('Tag')(self.request()) self.assertEquals(tag.related_rql('tags', 'subject'), - 'Any X,AA ORDERBY Z DESC ' - 'WHERE X modification_date Z, E eid %(x)s, E tags X, ' + 'Any X,AA ORDERBY AA DESC ' + 'WHERE E eid %(x)s, E tags X, ' 'X modification_date AA') self.assertEquals(tag.related_rql('tags', 'subject', ('Personne',)), 'Any X,AA,AB ORDERBY AA ASC '