mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-12 06:50:48 +08:00
重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。 Made-with: Cursor
This commit is contained in:
parent
ba3836f00f
commit
4a23b715a2
498 changed files with 2760 additions and 2200 deletions
|
|
@ -7,13 +7,13 @@ from oclaw.prompts.frontmatter import parse_frontmatter_dict, parse_markdown_doc
|
|||
|
||||
def test_parse_yaml_frontmatter_nested_metadata() -> None:
|
||||
fm = parse_frontmatter_dict(
|
||||
"name: demo\ndescription: x\nmetadata:\n openclaw:\n install:\n - id: i1\n kind: node\n",
|
||||
"name: demo\ndescription: x\nmetadata:\n oclaw:\n install:\n - id: i1\n kind: node\n",
|
||||
source="test",
|
||||
)
|
||||
assert fm.get("name") == "demo"
|
||||
md = fm.get("metadata")
|
||||
assert isinstance(md, dict)
|
||||
assert isinstance(md.get("openclaw"), dict)
|
||||
assert isinstance(md.get("oclaw"), dict)
|
||||
|
||||
|
||||
def test_parse_markdown_document_roundtrip() -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue