diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-11 16:55:11 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-11 16:55:11 +0100 |
commit | fc7b1b17eb430aee964c85f1ccf1776cb4be93c1 (patch) | |
tree | f06db194e2cda07f59df02e7e7341241f94678ae /mediagoblin | |
parent | d24a82970ea34d90b684e1adaf9ddebacf215b89 (diff) | |
download | mediagoblin-fc7b1b17eb430aee964c85f1ccf1776cb4be93c1.tar.lz mediagoblin-fc7b1b17eb430aee964c85f1ccf1776cb4be93c1.tar.xz mediagoblin-fc7b1b17eb430aee964c85f1ccf1776cb4be93c1.zip |
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>
Diffstat (limited to 'mediagoblin')
-rw-r--r-- | mediagoblin/tests/test_http_callback.py | 4 | ||||
-rw-r--r-- | mediagoblin/tests/test_oauth.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/tests/test_http_callback.py b/mediagoblin/tests/test_http_callback.py index d769af1e..8b0a03b9 100644 --- a/mediagoblin/tests/test_http_callback.py +++ b/mediagoblin/tests/test_http_callback.py @@ -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() diff --git a/mediagoblin/tests/test_oauth.py b/mediagoblin/tests/test_oauth.py index db4e226a..cedfc42a 100644 --- a/mediagoblin/tests/test_oauth.py +++ b/mediagoblin/tests/test_oauth.py @@ -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() |