Make sqlalchemy stop complaining about non-unicode input

These tests output noisy sql complaints about receiving non-unicode
for an unicode field. This was ... well ... because we were handing
in non-unicode usernames and passwords.

Prefixing usernames/passwords with u'' makes the testsuite less noisy
and verbose.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2012-12-11 16:55:11 +01:00
parent d24a82970e
commit fc7b1b17eb
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@ class TestHTTPCallback(object):
self.app = get_test_app()
self.db = mg_globals.database
self.user_password = 'secret'
self.user = fixture_add_user('call_back', self.user_password)
self.user_password = u'secret'
self.user = fixture_add_user(u'call_back', self.user_password)
self.login()

View File

@ -34,8 +34,8 @@ class TestOAuth(object):
self.pman = pluginapi.PluginManager()
self.user_password = '4cc355_70k3N'
self.user = fixture_add_user('joauth', self.user_password)
self.user_password = u'4cc355_70k3N'
self.user = fixture_add_user(u'joauth', self.user_password)
self.login()