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 079efbc commit 78c4c44Copy full SHA for 78c4c44
src/arguments/api_test.py
@@ -66,13 +66,13 @@ def fetch_payload_data(cls):
66
data = None
67
if(store == 1):
68
data = input("Enter data as key value pairs")
69
- data = eval(data)
+ data = json.loads(data)
70
elif(store == 2):
71
data = cls.read_data_from_file()
72
elif(store == 3):
73
print(f"you have entered {store}, so sending POST request without any data")
74
else:
75
- print(f"You have entered {store_data}, please enter from the above options")
+ print(f"You have entered {store}, please enter from the above options")
76
cls.fetch_payload_data()
77
return data
78
#saves the json response into a file
0 commit comments