Skip to content

Commit

Permalink
fix: Fix-class-tree (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger authored Jul 11, 2024
1 parent 5c22272 commit fd9ad24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion capellambse_context_diagrams/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ def _create_diagram(self, params: dict[str, t.Any]) -> cdiagram.Diagram:
setattr(self, param_name, override)

data = params.get("elkdata") or get_elkdata(self, params)
if has_single_child(data):
if not isinstance(
self, (ClassTreeDiagram, InterfaceContextDiagram)
) and has_single_child(data):
self.display_derived_interfaces = True
data = get_elkdata(self, params)

Expand Down
3 changes: 0 additions & 3 deletions tests/test_interface_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ def test_interface_diagram_with_hide_functions(
obj = model.by_uuid(TEST_INTERFACE_UUID)

diag = obj.context_diagram.render(None, hide_functions=True)
obj.context_diagram.render("svgdiagram", hide_functions=True).save(
pretty=True
)

for uuid in (
"fbfb2b20-b711-4211-9b75-25e38390cdbc", # LogicalFunction
Expand Down

0 comments on commit fd9ad24

Please sign in to comment.