Skip to content

Commit 979d0b8

Browse files
jnewberyjonasschnelli
authored andcommitted
[tests] [wallet] Add wallet endpoint support to authproxy
1 parent 76603b1 commit 979d0b8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/functional/test_framework/authproxy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,6 @@ def _get_response(self):
191191
else:
192192
log.debug("<-- [%.6f] %s"%(elapsed,responsedata))
193193
return response
194+
195+
def __truediv__(self, relative_uri):
196+
return AuthServiceProxy("{}/{}".format(self.__service_url, relative_uri), self._service_name, connection=self.__conn)

test/functional/test_framework/coverage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def __call__(self, *args, **kwargs):
5656
def url(self):
5757
return self.auth_service_proxy_instance.url
5858

59+
def __truediv__(self, relative_uri):
60+
return AuthServiceProxyWrapper(self.auth_service_proxy_instance / relative_uri)
5961

6062
def get_filename(dirname, n_node):
6163
"""

0 commit comments

Comments
 (0)