Skip to content

Commit 84383bf

Browse files
committed
fixed test farked in merge
1 parent 4a267aa commit 84383bf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/test_api.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,7 @@ def test_get_survey_sections(self):
178178
mock_get.status_code = 200
179179
mock_get.json.return_value = {}
180180
mock_request.get.return_value = mock_get
181-
self.cmix_api.get_survey_locales(self.survey_id)
182-
183-
base_url = CMIX_SERVICES['survey']['BASE_URL']
184-
surveys_url = '{}/surveys/{}/locales'.format(base_url, self.survey_id)
185-
mock_request.get.assert_any_call(surveys_url, headers=self.cmix_api._authentication_headers)
186181

187-
# error case (survey not found)
188-
with mock.patch('CmixAPIClient.api.requests') as mock_request:
189-
mock_get = mock.Mock()
190-
mock_get.status_code = 404
191-
mock_get.json.return_value = {}
192-
mock_request.get.return_value = mock_get
193182
self.cmix_api.get_survey_sections(self.survey_id)
194183

195184
base_url = CMIX_SERVICES['survey']['BASE_URL']

0 commit comments

Comments
 (0)