chore: readme 수정

This commit is contained in:
DongHyeonka
2026-07-29 18:03:21 +09:00
parent 8daa568746
commit 741c79b69f
180 changed files with 62890 additions and 13 deletions
+17
View File
@@ -79,6 +79,23 @@ class CompositionTests(unittest.TestCase):
issues = validate_spec(VizSpec.from_dict(data), self.context)
self.assertTrue(any(issue.code == "profile-not-supported-by-context" for issue in issues), issues)
def test_ports_adapter_details_stay_inside_boxes(self) -> None:
data = json.loads(
(ROOT / "examples/runtime-profiles/09-ports-adapters/spec.json").read_text(encoding="utf-8")
)
persistence = next(node for node in data["nodes"] if node["id"] == "persistence")
persistence["details"] = [
"PostgreSQL query",
"Fetch Join · Batch Fetch",
"DTO Projection · window function",
]
layout = build_layout(VizSpec.from_dict(data))
self.assertGreaterEqual(layout.nodes["web"].height, 94.0)
self.assertGreaterEqual(layout.nodes["persistence"].height, 126.0)
self.assertGreaterEqual(layout.nodes["out-port"].height, 58.0)
if __name__ == "__main__":
unittest.main()