# HG changeset patch # User Sylvain Thénault # Date 1253726589 -7200 # Node ID 0a0f8df4a2f7d017b61637745b20a2d4d72da364 # Parent fc5055a095500154211cb34fa75809db88258594 test fixes diff -r fc5055a09550 -r 0a0f8df4a2f7 server/test/unittest_rql2sql.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 = [ diff -r fc5055a09550 -r 0a0f8df4a2f7 server/test/unittest_security.py --- 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