Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
2d30de60a8ff
Commit
40ca5092
authored
Aug 02, 2009
by
Sylvain Thénault
Browse files
cleanup
parent
9c33d98a074e
Changes
3
Hide whitespace changes
Inline
Side-by-side
server/test/unittest_migractions.py
View file @
2d30de60
...
...
@@ -78,6 +78,7 @@ class MigrationCommandsTC(RepositoryBasedTC):
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'
,
))
...
...
server/test/unittest_repository.py
View file @
2d30de60
...
...
@@ -328,6 +328,16 @@ class RepositoryTC(RepositoryBasedTC):
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
):
...
...
server/test/unittest_rql2sql.py
View file @
2d30de60
...
...
@@ -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'
})
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
\n
FROM _TDF0'
,
args
=
{
'x'
:
728
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment