fix busted conf unit tests

This commit is contained in:
Ryan Petrello
2017-09-11 11:28:43 -04:00
parent e5043093eb
commit 4cc58a221b

View File

@@ -264,7 +264,7 @@ def test_setting_from_db_with_unicode(settings, mocker, encrypted):
# this simulates a bug in python-memcached; see https://github.com/linsomniac/python-memcached/issues/79 # this simulates a bug in python-memcached; see https://github.com/linsomniac/python-memcached/issues/79
value = six.u('Iñtërnâtiônàlizætiøn').encode('utf-8') value = six.u('Iñtërnâtiônàlizætiøn').encode('utf-8')
setting_from_db = mocker.Mock(key='AWX_SOME_SETTING', value=value) setting_from_db = mocker.Mock(id=1, key='AWX_SOME_SETTING', value=value)
mocks = mocker.Mock(**{ mocks = mocker.Mock(**{
'order_by.return_value': mocker.Mock(**{ 'order_by.return_value': mocker.Mock(**{
'__iter__': lambda self: iter([setting_from_db]), '__iter__': lambda self: iter([setting_from_db]),