✨ feat(playbook): add install_mode deployment config
BREAKING CHANGE: [vendor] and playbook.deploy_root are no longer supported. Use [playbook].install_mode and playbook.playbook_root instead.
This commit is contained in:
@@ -66,19 +66,20 @@ class TslEntrypointsConsistencyTests(unittest.TestCase):
|
||||
self.assertIn("方式一:git subtree", text)
|
||||
self.assertIn("方式二:外部 clone 后执行部署", text)
|
||||
self.assertIn("`project_root`:目标项目根目录", text)
|
||||
self.assertIn("`deploy_root`:相对于 `project_root` 的项目内目标目录", text)
|
||||
self.assertIn("`playbook_root`:相对于 `project_root` 的项目内 Playbook 根目录", text)
|
||||
self.assertIn("不是外部 clone 出来的 Playbook 仓库路径", text)
|
||||
self.assertIn("外部 clone 场景下必须显式填写 `deploy_root`", text)
|
||||
self.assertIn("外部 clone 场景下必须显式填写 `playbook_root`", text)
|
||||
self.assertNotIn("方式二:手动复制快照", text)
|
||||
self.assertNotIn("方式三:CLI 裁剪复制", text)
|
||||
self.assertNotIn("如果省略 `deploy_root`,默认仍部署到 `docs/standards/playbook`", text)
|
||||
self.assertNotIn("如果省略 `playbook_root`,默认仍部署到 `docs/standards/playbook`", text)
|
||||
|
||||
def test_playbook_example_defines_deploy_root_as_target_path(self):
|
||||
def test_playbook_example_defines_playbook_root_as_target_path(self):
|
||||
text = PLAYBOOK_EXAMPLE.read_text(encoding="utf-8")
|
||||
self.assertIn('deploy_root = "docs/standards/playbook"', text)
|
||||
self.assertIn('playbook_root = "docs/standards/playbook"', text)
|
||||
self.assertIn('install_mode = "subtree"', text)
|
||||
self.assertIn("相对于 project_root", text)
|
||||
self.assertIn("不是外部 clone 的 playbook 路径", text)
|
||||
self.assertIn("从外部 clone 执行时必填", text)
|
||||
self.assertIn("snapshot 表示从外部 clone 安装快照", text)
|
||||
self.assertNotIn("target_dir", text)
|
||||
|
||||
def test_deployment_docs_do_not_reference_legacy_terms(self):
|
||||
|
||||
Reference in New Issue
Block a user