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

Function test_relative_config_dir

tests/test_misc.py:2496–2506  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

2494
2495
2496def test_relative_config_dir(node_factory):
2497 l1 = node_factory.get_node(start=False)
2498 initial_dir = os.getcwd()
2499 lndir = l1.daemon.opts.get("lightning-dir")[:-1]
2500 *root_dir, l1.daemon.opts["lightning-dir"] = lndir.split('/')
2501 os.chdir('/'.join(root_dir))
2502 l1.daemon.executable = os.path.join(initial_dir, l1.daemon.executable)
2503 l1.start()
2504 assert os.path.isabs(l1.rpc.listconfigs()['configs']["lightning-dir"]['value_str'])
2505 l1.stop()
2506 os.chdir(initial_dir)
2507
2508
2509def test_signmessage(node_factory):

Callers

nothing calls this directly

Calls 6

joinMethod · 0.80
listconfigsMethod · 0.80
get_nodeMethod · 0.45
getMethod · 0.45
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected