Skip to content

Commit 4f92aff

Browse files
committed
Update the functional test files for attribute annotation, because now pyreverse correctly extracts Dummy as Association
1 parent 47ab016 commit 4f92aff

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/pyreverse/functional/class_diagrams/annotations/attributes_annotation.dot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ rankdir=BT
33
charset="utf-8"
44
"attributes_annotation.Dummy" [color="black", fontcolor="black", label=<{Dummy|<br ALIGN="LEFT"/>|}>, shape="record", style="solid"];
55
"attributes_annotation.Dummy2" [color="black", fontcolor="black", label=<{Dummy2|alternative_optional : int \| None<br ALIGN="LEFT"/>alternative_optional_swapped : None \| int<br ALIGN="LEFT"/>alternative_union_syntax : str \| int<br ALIGN="LEFT"/>class_attr : list[Dummy]<br ALIGN="LEFT"/>optional : Optional[Dummy]<br ALIGN="LEFT"/>optional_union : Optional[int \| str]<br ALIGN="LEFT"/>param : str<br ALIGN="LEFT"/>union : Union[int, str]<br ALIGN="LEFT"/>|}>, shape="record", style="solid"];
6+
"attributes_annotation.Dummy" -> "attributes_annotation.Dummy2" [arrowhead="normal", arrowtail="none", fontcolor="green", label="optional", style="solid"];
67
}

tests/pyreverse/functional/class_diagrams/annotations/attributes_annotation.mmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ classDiagram
1111
param : str
1212
union : Union[int, str]
1313
}
14+
Dummy --> Dummy2 : optional

tests/pyreverse/functional/class_diagrams/annotations/attributes_annotation.puml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ class "Dummy2" as attributes_annotation.Dummy2 {
1212
param : str
1313
union : Union[int, str]
1414
}
15+
attributes_annotation.Dummy --> attributes_annotation.Dummy2 : optional
1516
@enduml

0 commit comments

Comments
 (0)