# HG changeset patch # User Sylvain Thénault # Date 1249075673 -7200 # Node ID e76bf303c6f29a157b66dffb93921c57316c014b # Parent 92aad5e184051919ec2a14aebafa98dcc38f9704 [F server test] sort for test predictability diff -r 92aad5e18405 -r e76bf303c6f2 server/__init__.py --- a/server/__init__.py Fri Jul 31 23:26:14 2009 +0200 +++ b/server/__init__.py Fri Jul 31 23:27:53 2009 +0200 @@ -124,7 +124,8 @@ else: login, pwd = unicode(source['db-user']), source['db-password'] print '-> inserting default user and default groups.' - for group in BASE_GROUPS: + # sort for eid predicatability as expected in some server tests + for group in sorted(BASE_GROUPS): rset = session.execute('INSERT CWGroup X: X name %(name)s', {'name': unicode(group)}) rset = session.execute('INSERT CWUser X: X login %(login)s, X upassword %(pwd)s',