File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11import requests , json
2- import re
32
4- class Api_Testing ():
3+ class ApiTesting ():
54 default_url = "127.0.0.1:8000"
65
76 # Make GET request
87 @classmethod
9- def get_request (self ):
10- request_url = Api_Testing .default_url
8+ def get_request (cls ):
9+ request_url = ApiTesting .default_url
1110 input_url = input ('Enter URL: ' )
1211 if input_url != '' :
1312 request_url = input_url
1413
1514 # Check whether the request_url has an endpoint or not
16- has_endpoint = self .check_endpoint (request_url )
15+ has_endpoint = ApiTesting .check_endpoint (request_url )
1716
1817 # Ask the user for endpoint if not present in request_url
1918 if not (has_endpoint ):
Original file line number Diff line number Diff line change 88from .utility import Utility
99from .save import SaveSearchResults
1010from .update import UpdateApplication
11- from .api_test import Api_Testing
11+ from .api_test import ApiTesting
1212
1313version = "0.1.0"
1414class Prompt ():
@@ -29,7 +29,7 @@ class Search():
2929 def __init__ (self , arguments ):
3030 self .arguments = arguments
3131 self .utility_object = Utility ()
32- self .api_test_object = Api_Testing ()
32+ self .api_test_object = ApiTesting ()
3333
3434 def search_args (self ):
3535 if self .arguments .search :
You can’t perform that action at this time.
0 commit comments