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

Function test_list_methods

tests/test_clnrest.py:154–163  ·  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

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