mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
fix busted conf unit tests
This commit is contained in:
parent
e5043093eb
commit
4cc58a221b
@ -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
|
||||
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(**{
|
||||
'order_by.return_value': mocker.Mock(**{
|
||||
'__iter__': lambda self: iter([setting_from_db]),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user