Add API usage tests
This commit is contained in:
parent
11ff3e9b59
commit
fb1dca4e94
4 changed files with 194 additions and 20 deletions
|
@ -123,7 +123,7 @@ def approve_service_key(kid, approver, approval_type, notes=''):
|
|||
|
||||
delete_all_notifications_by_path_prefix('/service_key_approval/{0}'.format(kid))
|
||||
_gc_expired(key.service)
|
||||
|
||||
return key
|
||||
|
||||
def _list_service_keys_query(kid=None, service=None, approved_only=False):
|
||||
query = ServiceKey.select().join(ServiceKeyApproval, JOIN_LEFT_OUTER)
|
||||
|
|
Reference in a new issue