chore: readme 수정
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user