MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_list_methods

Function test_list_methods

tests/test_clnrest.py:156–165  ·  view source on GitHub ↗

Test GET request on `/v1/list-methods` end point with default values for options.

(node_factory)

Source from the content-addressed store, hash-verified

154
155
156def test_list_methods(node_factory):
157 """Test GET request on `/v1/list-methods` end point with default values for options."""
158 # start a node with clnrest
159 l1, base_url, ca_cert = start_node_with_clnrest(node_factory)
160
161 # /v1/list-methods
162 http_session = http_session_with_retry()
163 response = http_session.get(base_url + '/v1/list-methods', verify=ca_cert)
164 assert response.status_code == 200
165 assert response.text.find('getinfo') > 0
166
167
168def test_unknown_method(node_factory):

Callers

nothing calls this directly

Calls 3

start_node_with_clnrestFunction · 0.85
http_session_with_retryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected