import getpass, os.path import warnings def set_up_for_tests(): from sqlalchemy.exc import SAWarning warnings.simplefilter("error", UnicodeWarning) warnings.simplefilter("error", SAWarning) from bazbase import custom def get_sqlalchemy_args(): return {'pool_recycle': 30, 'echo': 0, 'url': 'mysql://sql.mit.edu/%s+deadtree?read_default_file=%s' % (getpass.getuser(), os.path.expanduser('~/.my.cnf'))} custom.get_sqlalchemy_args = get_sqlalchemy_args