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

Function test_relative_config_dir

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

Source from the content-addressed store, hash-verified

2524
2525
2526def test_relative_config_dir(node_factory):
2527 l1 = node_factory.get_node(start=False)
2528 initial_dir = os.getcwd()
2529 lndir = l1.daemon.opts.get("lightning-dir")[:-1]
2530 *root_dir, l1.daemon.opts["lightning-dir"] = lndir.split('/')
2531 os.chdir('/'.join(root_dir))
2532 l1.daemon.executable = os.path.join(initial_dir, l1.daemon.executable)
2533 l1.start()
2534 assert os.path.isabs(l1.rpc.listconfigs()['configs']["lightning-dir"]['value_str'])
2535 l1.stop()
2536 os.chdir(initial_dir)
2537
2538
2539def 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