Skip to content

Commit 04769a1

Browse files
authored
Merge pull request #31 from dataiku/bug/sc-110446-recipe-fails-w-int-output
Bug/sc 110446 recipe fails w int output
2 parents 3b46290 + 30c26ea commit 04769a1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

python-lib/rest_api_recipe_session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def format_page_rows(self, data_rows, is_raw_output, metadata=None):
124124

125125

126126
def is_error_message(jsons_response):
127+
if type(jsons_response) not in [dict, list]:
128+
return False
127129
if "error" in jsons_response and len(jsons_response) == 1:
128130
return True
129131
else:

tests/python/integration/test_scenario.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ def test_run_api_connect_ntlm_authentication(user_dss_clients):
4141

4242
def test_run_api_connect_relative_url_pagination(user_dss_clients):
4343
dss_scenario.run(user_dss_clients, project_key=TEST_PROJECT_KEY, scenario_id="RELATIVEURLPAGINATION")
44+
45+
46+
def test_run_api_connect_check_sc_110446(user_dss_clients):
47+
dss_scenario.run(user_dss_clients, project_key=TEST_PROJECT_KEY, scenario_id="CHECKSC110446")

0 commit comments

Comments
 (0)