Renamed api_client.check_version() to api_client.is_server_compatible().
Started adding unit tests: pypo-api-validator.py.
This commit is contained in:
parent
5e04c806bd
commit
4684837f2b
6 changed files with 165 additions and 45 deletions
|
@ -76,10 +76,10 @@ class Global:
|
|||
print
|
||||
|
||||
def selfcheck(self):
|
||||
|
||||
self.api_auth = urllib.urlencode({'api_key': API_KEY})
|
||||
self.api_client = api_client.api_client_factory(config)
|
||||
self.api_client.check_version()
|
||||
if (not self.api_client.is_server_compatible()):
|
||||
sys.exit()
|
||||
|
||||
class Notify:
|
||||
def __init__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue