File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 77.coverage *
88htmlcov /
99.tox /
10- docs /_build /
10+ docs /_build /
11+ * .egg-info
Original file line number Diff line number Diff line change 55
66setuptools .setup (
77 name = "ip2location-io" ,
8- version = "1.0.1 " ,
8+ version = "1.0.3 " ,
99 author = "IP2Location" ,
1010 author_email = "support@ip2location.com" ,
1111 description = "This SDK provides users with the ability to perform IP geolocation lookup and domain WHOIS lookup through a web service." ,
Original file line number Diff line number Diff line change 44
55import ip2locationio
66
7- def testinvalidapikey ():
8- configuration = ip2locationio .Configuration ('' )
7+ def testinvalidapikey (global_data ):
8+ configuration = ip2locationio .Configuration (global_data [ "apikey" ] )
99 ipgeolocation = ip2locationio .IPGeolocation (configuration )
1010 try :
1111 result = ipgeolocation .lookup ('8.8.8.8' )
1212 except IP2LocationIOAPIError as e :
1313 assert str (e ) == 'Invalid API key or insufficient credit.'
1414
15- def testfunctionexist ():
16- configuration = ip2locationio .Configuration ('' )
15+ def testfunctionexist (global_data ):
16+ configuration = ip2locationio .Configuration (global_data [ "apikey" ] )
1717 ipgeolocation = ip2locationio .IPGeolocation (configuration )
1818 functions_list = ['lookup' ]
1919 for x in range (len (functions_list )):
You can’t perform that action at this time.
0 commit comments