Skip to content

Commit

Permalink
Fixed error running interactive mode for API tests (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
shivahari authored Oct 30, 2024
1 parent 593b6dc commit 038ef03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def test_api_obj(interactivemode_flag, testname, api_url=base_url_conf.api_base_
log_file = testname + '.log'
try:
if interactivemode_flag.lower()=='y':
api_url,session_flag = interactive_mode.ask_questions_api(api_url)
api_url = interactive_mode.ask_questions_api(api_url)
test_api_obj = APIPlayer(api_url, # pylint: disable=redefined-outer-name
log_file_path=log_file)
else:
Expand Down
5 changes: 3 additions & 2 deletions utils/interactive_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,10 @@ def ask_questions_api(api_url):
def get_user_response_api():
"Get response from user for api tests"
response=questionary.select("What would you like to change",
choices=["API URL","Session flag status",
choices=["API URL",
"Reset back to default settings",
"Run","Exit"]).ask()
"Run",
"Exit"]).ask()

return response

Expand Down

0 comments on commit 038ef03

Please sign in to comment.