Skip to content

Commit

Permalink
[tests] [wallet] Add wallet endpoint support to authproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewbery authored and jonasschnelli committed Jul 17, 2017
1 parent 76603b1 commit 979d0b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/test_framework/authproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,6 @@ def _get_response(self):
else:
log.debug("<-- [%.6f] %s"%(elapsed,responsedata))
return response

def __truediv__(self, relative_uri):
return AuthServiceProxy("{}/{}".format(self.__service_url, relative_uri), self._service_name, connection=self.__conn)
2 changes: 2 additions & 0 deletions test/functional/test_framework/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def __call__(self, *args, **kwargs):
def url(self):
return self.auth_service_proxy_instance.url

def __truediv__(self, relative_uri):
return AuthServiceProxyWrapper(self.auth_service_proxy_instance / relative_uri)

def get_filename(dirname, n_node):
"""
Expand Down

0 comments on commit 979d0b8

Please sign in to comment.