some test fixes, more in the 3.5 branch stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Aug 2009 17:57:31 +0200
branchstable
changeset 2930 d7c23b2c7538
parent 2929 51cdfe069e10
child 2931 17224e90a1c4
child 2958 44e5446b649b
child 2994 88c578819ac1
some test fixes, more in the 3.5 branch
server/test/unittest_migractions.py
test/unittest_entity.py
--- a/server/test/unittest_migractions.py	Thu Aug 20 17:57:07 2009 +0200
+++ b/server/test/unittest_migractions.py	Thu Aug 20 17:57:31 2009 +0200
@@ -280,7 +280,7 @@
             'Any N ORDERBY O WHERE X is CWAttribute, X relation_type RT, RT name N,'
             'X from_entity FE, FE name "Personne",'
             'X ordernum O')]
-        expected = [u'nom', u'prenom', u'promo', u'ass', u'adel', u'titre',
+        expected = [u'nom', u'prenom', u'sexe', u'promo', u'ass', u'adel', u'titre',
                     u'web', u'tel', u'fax', u'datenaiss', u'test', 'description', u'firstname',
                     u'creation_date', 'cwuri', u'modification_date']
         self.assertEquals(rinorder, expected)
--- a/test/unittest_entity.py	Thu Aug 20 17:57:07 2009 +0200
+++ b/test/unittest_entity.py	Thu Aug 20 17:57:31 2009 +0200
@@ -157,7 +157,8 @@
                               )
             # testing symetric relation
             Personne.fetch_attrs = ('nom', 'connait')
-            self.assertEquals(Personne.fetch_rql(user), 'Any X,AA,AB ORDERBY AA ASC WHERE X is Personne, X nom AA, X connait AB')
+            self.assertEquals(Personne.fetch_rql(user), 'Any X,AA,AB ORDERBY AA ASC '
+                              'WHERE X is Personne, X nom AA, X connait AB?')
             # testing optional relation
             peschema.subject_relation('travaille').set_rproperty(peschema, seschema, 'cardinality', '?*')
             Personne.fetch_attrs = ('nom', 'prenom', 'travaille')