Test GET request on `/v1/list-methods` end point with default values for options.
(node_factory)
| 152 | |
| 153 | |
| 154 | def 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 | |
| 166 | def test_unknown_method(node_factory): |
nothing calls this directly
no test coverage detected