Should not appear in list if it didn't even start
(node_factory)
| 4646 | |
| 4647 | @unittest.skipIf(VALGRIND, "Valgrind doesn't handle bad #! lines the same") |
| 4648 | def test_plugin_nostart(node_factory): |
| 4649 | "Should not appear in list if it didn't even start" |
| 4650 | |
| 4651 | l1 = node_factory.get_node() |
| 4652 | with pytest.raises(RpcError, match="badinterp.py: opening pipe: No such file or directory"): |
| 4653 | l1.rpc.plugin_start(os.path.join(os.getcwd(), 'tests/plugins/badinterp.py')) |
| 4654 | |
| 4655 | assert [p['name'] for p in l1.rpc.plugin_list()['plugins'] if 'badinterp' in p['name']] == [] |
| 4656 | |
| 4657 | |
| 4658 | def test_plugin_startdir_lol(node_factory): |
nothing calls this directly
no test coverage detected