Skip to content

Commit

Permalink
update default values to listExp test API
Browse files Browse the repository at this point in the history
Signed-off-by: Saad Khan <[email protected]>
  • Loading branch information
khansaad committed Nov 22, 2023
1 parent b63f3ff commit 9fd54c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ def main(argv):

# Fetch listExperiments
list_exp_json_file_before = list_exp_json_dir + "/list_exp_json_before_" + str(i) + ".json"
response = list_experiments()
# assign params to be passed in listExp
results = "true"
recommendations = "true"
latest = "false"
experiment_name = None
response = list_experiments(results, recommendations, latest, experiment_name)
if response.status_code == SUCCESS_200_STATUS_CODE:
list_exp_json = response.json()
else:
Expand Down Expand Up @@ -173,7 +178,11 @@ def main(argv):

# Fetch listExperiments
list_exp_json_file_after = list_exp_json_dir + "/list_exp_json_after_" + str(i) + ".json"
response = list_experiments()
results = "true"
recommendations = "true"
latest = "false"
experiment_name = None
response = list_experiments(results, recommendations, latest, experiment_name)
if response.status_code == SUCCESS_200_STATUS_CODE:
list_exp_json = response.json()
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,9 @@ def test_update_results__duplicate_records_with_single_exp_multiple_results(clus

# assign params to be passed in listExp
results = "true"
recommendations = "false"
latest = "false"
response = list_experiments(results, None, latest, experiment_name)
response = list_experiments(results, recommendations, latest, experiment_name)

list_exp_json = response.json()
assert response.status_code == SUCCESS_200_STATUS_CODE
Expand Down

0 comments on commit 9fd54c2

Please sign in to comment.