Skip to content

Commit 78c4c44

Browse files
committed
Fix codacy issues
1 parent 079efbc commit 78c4c44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arguments/api_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ def fetch_payload_data(cls):
6666
data = None
6767
if(store == 1):
6868
data = input("Enter data as key value pairs")
69-
data = eval(data)
69+
data = json.loads(data)
7070
elif(store == 2):
7171
data = cls.read_data_from_file()
7272
elif(store == 3):
7373
print(f"you have entered {store}, so sending POST request without any data")
7474
else:
75-
print(f"You have entered {store_data}, please enter from the above options")
75+
print(f"You have entered {store}, please enter from the above options")
7676
cls.fetch_payload_data()
7777
return data
7878
#saves the json response into a file

0 commit comments

Comments
 (0)