def setup_runtime(self):
# create a working set with our custom runtime entry point
# TODO should really improve the test case to provide custom
# runtime instances separate from actual data.
working_set = mocks.WorkingSet({
'calmjs.runtime': [
'cmd = calmjs.npm:npm.runtime',
],
})
return runtime.Runtime(working_set=working_set, prog='calmjs')
# for the test, we use the -u flag for the unknown tests as it is
# unknown to bootstrap and target parser. Next two are using known
# flag to before, then after.
评论列表
文章目录