We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4608f commit 548372dCopy full SHA for 548372d
src/arguments/api_test.py
@@ -47,12 +47,12 @@ def fetch_input_url(cls):
47
@classmethod
48
def save_response_data(cls,response_data):
49
store_data = input('Store response data? (Y/N): ')
50
- if(store_data == 'Y' or store_data == 'y'):
+ if(store_data.lower() == 'y'):
51
with open('response_data.json', 'w') as jsonFile:
52
json.dump(response_data, jsonFile, indent=4)
53
print("Response data stored in response_data.json")
54
else:
55
- print(f"You have entered {store_data}, please enter 'Y' or 'y' to store the output")
+ print(f"You have entered {store_data}, So the response is not saved")
56
57
# formats the response data and prints it in json on console
58
0 commit comments