test fixes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2009 19:23:09 +0200
changeset 3447 0a0f8df4a2f7
parent 3446 fc5055a09550
child 3448 495862266785
test fixes
server/test/unittest_rql2sql.py
server/test/unittest_security.py
--- a/server/test/unittest_rql2sql.py	Wed Sep 23 19:16:51 2009 +0200
+++ b/server/test/unittest_rql2sql.py	Wed Sep 23 19:23:09 2009 +0200
@@ -34,6 +34,7 @@
 config.bootstrap_cubes()
 schema = config.load_schema()
 schema['in_state'].inlined = True
+schema['state_of'].inlined = False
 schema['comments'].inlined = False
 
 PARSER = [
--- a/server/test/unittest_security.py	Wed Sep 23 19:16:51 2009 +0200
+++ b/server/test/unittest_security.py	Wed Sep 23 19:23:09 2009 +0200
@@ -504,7 +504,7 @@
             aff.fire_transition('abort')
             cnx.commit()
             # though changing a user state (even logged user) is reserved to managers
-            user = cnx.user(self.current_session())
+            user = cnx.user(self.session)
             # XXX wether it should raise Unauthorized or ValidationError is not clear
             # the best would probably ValidationError if the transition doesn't exist
             # from the current state but Unauthorized if it exists but user can't pass it