def test_ext_commands(tmpdir) -> None: tmp = str(tmpdir.mkdir("bk_ext_01")) assert _names(tmp) == [] assert ext.init(tmp, bokehjs_version="2.4.0") is True assert _names(tmp) == [ "bokeh.ext.json", "index.ts", "package.json", "tsconfig.json", ] assert ext.build(tmp) is True assert _names(tmp) == [ ".bokeh", "bokeh.ext.json", "dist", "index.ts", "node_modules", "package-lock.json", "package.json", "tsconfig.json", ] assert ext.init(tmp) is False
def invoke(self, args: Namespace) -> bool: return init(args.base_dir, interactive=args.interactive, bokehjs_version=args.bokehjs_version, debug=args.debug)
def invoke(self, args): return init(args.base_dir, interactive=args.interactive, bokehjs_version=args.bokehjs_version, debug=args.debug)