File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def print_response_json(cls,response):
6060 output_json = highlight (parsed_json , lexers .JsonLexer (),
6161 formatters .TerminalFormatter ())
6262 print (output_json )
63- return output_json , response_data
63+ return response_data
6464
6565 # Make GET request
6666 @classmethod
@@ -69,7 +69,7 @@ def get_request(cls):
6969 # Make GET request and store the response in response_data.json
7070 try :
7171 response = requests .get (request_data ["request_url" ], headers = request_data ["request_headers" ])
72- output_json , response_data = cls .print_response_json (response )
72+ response_data = cls .print_response_json (response )
7373 cls .save_response_data (response_data )
7474
7575 except requests .exceptions .InvalidSchema :
@@ -83,7 +83,7 @@ def delete_endpoint_request(cls):
8383 request_data = cls .fetch_input_url ()
8484 try :
8585 response = requests .delete (request_data ["request_url" ], headers = request_data ["request_headers" ])
86- output_json , response_data = cls .print_response_json (response )
86+ response_data = cls .print_response_json (response )
8787 cls .save_response_data (response_data )
8888
8989 except requests .exceptions .InvalidSchema :
You can’t perform that action at this time.
0 commit comments