cleanup
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Sun, 02 Aug 2009 11:54:02 +0200
changeset 2642 2d30de60a8ff
parent 2641 9c33d98a074e
child 2643 9976f511003b
cleanup
server/test/unittest_migractions.py
server/test/unittest_repository.py
server/test/unittest_rql2sql.py
--- a/server/test/unittest_migractions.py	Sat Aug 01 17:22:46 2009 +0200
+++ b/server/test/unittest_migractions.py	Sun Aug 02 11:54:02 2009 +0200
@@ -78,6 +78,7 @@
 
     def test_add_datetime_with_default_value_attribute(self):
         self.failIf('mydate' in self.schema)
+        self.failIf('shortpara' in self.schema)
         self.mh.cmd_add_attribute('Note', 'mydate')
         self.failUnless('mydate' in self.schema)
         self.assertEquals(self.schema['mydate'].subjects(), ('Note', ))
--- a/server/test/unittest_repository.py	Sat Aug 01 17:22:46 2009 +0200
+++ b/server/test/unittest_repository.py	Sun Aug 02 11:54:02 2009 +0200
@@ -328,6 +328,16 @@
         no_is_rset = self.execute('Any X WHERE NOT X is ET')
         self.failIf(no_is_rset, no_is_rset.description)
 
+#     def test_perfo(self):
+#         self.set_debug(True)
+#         from time import time, clock
+#         t, c = time(), clock()
+#         try:
+#             self.create_user('toto')
+#         finally:
+#             self.set_debug(False)
+#         print 'test time: %.3f (time) %.3f (cpu)' % ((time() - t), clock() - c)
+
 
 class DataHelpersTC(RepositoryBasedTC):
 
--- a/server/test/unittest_rql2sql.py	Sat Aug 01 17:22:46 2009 +0200
+++ b/server/test/unittest_rql2sql.py	Sun Aug 02 11:54:02 2009 +0200
@@ -1227,7 +1227,6 @@
                     varmap={'X': 'T00.x', 'X.login': 'T00.l'})
 
     def test_varmap3(self):
-        self.set_debug(True)
         self._check('Any %(x)s,D WHERE F data D, F is File',
                     'SELECT 728, _TDF0.C0\nFROM _TDF0',
                     args={'x': 728},