Commit 40ca5092 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

cleanup

parent 9c33d98a074e
...@@ -78,6 +78,7 @@ class MigrationCommandsTC(RepositoryBasedTC): ...@@ -78,6 +78,7 @@ class MigrationCommandsTC(RepositoryBasedTC):
def test_add_datetime_with_default_value_attribute(self): def test_add_datetime_with_default_value_attribute(self):
self.failIf('mydate' in self.schema) self.failIf('mydate' in self.schema)
self.failIf('shortpara' in self.schema)
self.mh.cmd_add_attribute('Note', 'mydate') self.mh.cmd_add_attribute('Note', 'mydate')
self.failUnless('mydate' in self.schema) self.failUnless('mydate' in self.schema)
self.assertEquals(self.schema['mydate'].subjects(), ('Note', )) self.assertEquals(self.schema['mydate'].subjects(), ('Note', ))
......
...@@ -328,6 +328,16 @@ class RepositoryTC(RepositoryBasedTC): ...@@ -328,6 +328,16 @@ class RepositoryTC(RepositoryBasedTC):
no_is_rset = self.execute('Any X WHERE NOT X is ET') no_is_rset = self.execute('Any X WHERE NOT X is ET')
self.failIf(no_is_rset, no_is_rset.description) 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): class DataHelpersTC(RepositoryBasedTC):
......
...@@ -1227,7 +1227,6 @@ WHERE rel_in_group0.eid_from=T00.x AND rel_in_group0.eid_to=G.cw_eid''', ...@@ -1227,7 +1227,6 @@ WHERE rel_in_group0.eid_from=T00.x AND rel_in_group0.eid_to=G.cw_eid''',
varmap={'X': 'T00.x', 'X.login': 'T00.l'}) varmap={'X': 'T00.x', 'X.login': 'T00.l'})
def test_varmap3(self): def test_varmap3(self):
self.set_debug(True)
self._check('Any %(x)s,D WHERE F data D, F is File', self._check('Any %(x)s,D WHERE F data D, F is File',
'SELECT 728, _TDF0.C0\nFROM _TDF0', 'SELECT 728, _TDF0.C0\nFROM _TDF0',
args={'x': 728}, args={'x': 728},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment