test: Properly log named args in authproxy

This commit is contained in:
MarcoFalke 2019-04-08 17:34:42 -04:00
parent 297ea51caf
commit fa078984c9
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -122,8 +122,11 @@ class AuthServiceProxy():
def get_request(self, *args, **argsn): def get_request(self, *args, **argsn):
AuthServiceProxy.__id_count += 1 AuthServiceProxy.__id_count += 1
log.debug("-%s-> %s %s" % (AuthServiceProxy.__id_count, self._service_name, log.debug("-{}-> {} {}".format(
json.dumps(args, default=EncodeDecimal, ensure_ascii=self.ensure_ascii))) AuthServiceProxy.__id_count,
self._service_name,
json.dumps(args or argsn, default=EncodeDecimal, ensure_ascii=self.ensure_ascii),
))
if args and argsn: if args and argsn:
raise ValueError('Cannot handle both named and positional arguments') raise ValueError('Cannot handle both named and positional arguments')
return {'version': '1.1', return {'version': '1.1',