File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff 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' ]
You can’t perform that action at this time.
0 commit comments