From fc7b1b17eb430aee964c85f1ccf1776cb4be93c1 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Tue, 11 Dec 2012 16:55:11 +0100 Subject: 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 --- mediagoblin/tests/test_http_callback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mediagoblin/tests/test_http_callback.py') 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() -- cgit v1.2.3