Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(realization-view): Fix broken styleclass for edges #106

Merged
merged 4 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions capellambse_context_diagrams/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def make_diagram(

self.diagram.calculate_viewport()
self.order_children()
self._edges.clear()
ewuerger marked this conversation as resolved.
Show resolved Hide resolved
return self.diagram

def deserialize_child(
Expand Down
4 changes: 4 additions & 0 deletions tests/test_context_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@
"c78b5d7c-be0c-4ed4-9d12-d447cb39304e",
id="PhysicalBehaviorComponent",
),
pytest.param("957c5799-1d4a-4ac0-b5de-33a65bf1519c", id="Hey"),
],
)
def test_context_diagrams(model: capellambse.MelodyModel, uuid: str) -> None:
obj = model.by_uuid(uuid)

diag = obj.context_diagram

diag.render("svgdiagram", display_parent_relation=True)
diag.render("svgdiagram", display_parent_relation=False)
ewuerger marked this conversation as resolved.
Show resolved Hide resolved

assert diag.nodes


Expand Down
Loading