tests: use force_str() in sql fts test (#36515)

This commit is contained in:
Frédéric Péters 2019-11-13 09:34:03 +01:00
parent 7bd1967fc4
commit 53812ecd8e
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ from django.core.management import call_command
from quixote import cleanup
from wcs.qommon import force_str
from wcs import formdef, publisher, fields
from wcs.formdef import FormDef
from wcs.formdata import Evolution
@ -951,7 +952,7 @@ def test_sql_criteria_fts():
# check unaccent
user = sql.SqlUser()
user.name = u'Frédéric'.encode('utf-8')
user.name = force_str(u'Frédéric')
user.store()
t.user_id = user.id
t.store()