(tmp_path)
| 100 | |
| 101 | |
| 102 | def test_include_section_sections(tmp_path): |
| 103 | root = _theme(tmp_path, { |
| 104 | "snippets/legacy.liquid": "", |
| 105 | "sections/banner.liquid": "", |
| 106 | "sections/header-group.json": "{}", |
| 107 | "sections/a.liquid": "{% include 'legacy' %}\n{% section 'banner' %}\n{% sections 'header-group' %}\n", |
| 108 | }) |
| 109 | t = _targets(root, "sections/a.liquid") |
| 110 | assert t == [ |
| 111 | ("imports", "snippets/legacy.liquid", "L1"), |
| 112 | ("imports", "sections/banner.liquid", "L2"), |
| 113 | ("imports", "sections/header-group.json", "L3"), |
| 114 | ] |
| 115 | result = extract_liquid(root / "sections/a.liquid") |
| 116 | json_id = _make_id(str(root / "sections/header-group.json")) |
| 117 | assert any(n["id"] == json_id for n in result["nodes"]) |
| 118 | |
| 119 | |
| 120 | def test_content_for_block_and_schema_blocks(tmp_path): |
nothing calls this directly
no test coverage detected