misc: make mocked AppSetting be returned as object instead of class

This commit is contained in:
Josue Kouka 2018-03-14 14:10:22 +01:00
parent c23f4a3b5e
commit 6b6053cce5
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ MOCKED_RESPONSES_LIST = [
@mock.patch('mandayejs.applications.views.requests.Session.post')
@mock.patch('mandayejs.applications.get_app_settings')
def test_archimed_ws(mocked_get_app_settings, mocked_requests_post):
mocked_get_app_settings.return_value = Archimed
mocked_get_app_settings.return_value = Archimed()
mocked_requests_post.side_effect = MOCKED_RESPONSES_LIST
user_uuid = uuid.uuid4().hex