[repo test] fixes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 09 Jun 2011 16:09:23 +0200
changeset 7484 45a350d6b22f
parent 7483 b9740d6a1ec3
child 7488 a55cf445ead8
[repo test] fixes
server/test/unittest_querier.py
server/test/unittest_repository.py
--- a/server/test/unittest_querier.py	Thu Jun 09 15:29:55 2011 +0200
+++ b/server/test/unittest_querier.py	Thu Jun 09 16:09:23 2011 +0200
@@ -785,7 +785,7 @@
     def test_select_boolean(self):
         rset = self.execute('Any N WHERE X is CWEType, X name N, X final %(val)s',
                             {'val': True})
-        self.assertEqual(sorted(r[0] for r in rset.rows), ['Boolean', 'Bytes',
+        self.assertEqual(sorted(r[0] for r in rset.rows), ['BigInt', 'Boolean', 'Bytes',
                                                            'Date', 'Datetime',
                                                            'Decimal', 'Float',
                                                            'Int', 'Interval',
@@ -793,7 +793,7 @@
                                                            'TZDatetime', 'TZTime',
                                                            'Time'])
         rset = self.execute('Any N WHERE X is CWEType, X name N, X final TRUE')
-        self.assertEqual(sorted(r[0] for r in rset.rows), ['Boolean', 'Bytes',
+        self.assertEqual(sorted(r[0] for r in rset.rows), ['BigInt', 'Boolean', 'Bytes',
                                                            'Date', 'Datetime',
                                                            'Decimal', 'Float',
                                                            'Int', 'Interval',
--- a/server/test/unittest_repository.py	Thu Jun 09 15:29:55 2011 +0200
+++ b/server/test/unittest_repository.py	Thu Jun 09 16:09:23 2011 +0200
@@ -69,7 +69,7 @@
             self.assertEqual(cu.fetchall(), [])
             cu = self.session.system_sql('SELECT %s FROM %s WHERE %s=%%(final)s ORDER BY %s'
                                          % (namecol, table, finalcol, namecol), {'final': 'TRUE'})
-            self.assertEqual(cu.fetchall(), [(u'Boolean',), (u'Bytes',),
+            self.assertEqual(cu.fetchall(), [(u'BigInt',), (u'Boolean',), (u'Bytes',),
                                              (u'Date',), (u'Datetime',),
                                              (u'Decimal',),(u'Float',),
                                              (u'Int',),