diff options
author | Andreas Finkler <3929834+DudeNr33@users.noreply.github.com> | 2021-08-14 21:34:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-14 21:34:00 +0200 |
commit | 4da3862f492f017be3149a5b89f365335f0bf746 (patch) | |
tree | 8c6c3622232b22c79280dca66c8c4e5f02262ad5 /tests/pyreverse/data/classes_No_Name.puml | |
parent | f2cd986da07c12e81dd411e4b1190386a6cad750 (diff) | |
download | pylint-git-4da3862f492f017be3149a5b89f365335f0bf746.tar.gz |
``pyreverse``: add PlantUML output (#4846)
* Extract helper method to get annotated arguments into ``Printer`` base class.
* Add ``Printer`` subclass for PlantUML output
* Add functional test for ``PlantUmlPrinter``
* Add tests for specific layout for ``PlantUmlPrinter``
* Extract test helper function to remove code duplication
* Add new test class to check type annotations
* Cleanup generated .puml files after tests finished
* Create a factory function to get the correct ``Printer`` class for a given filetype.
* Fix unittest after adding a new class to the test data.
* Add changelog and whatsnew entry
* Add "plantuml" as possible extension for PlantUML output
Diffstat (limited to 'tests/pyreverse/data/classes_No_Name.puml')
-rw-r--r-- | tests/pyreverse/data/classes_No_Name.puml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/pyreverse/data/classes_No_Name.puml b/tests/pyreverse/data/classes_No_Name.puml new file mode 100644 index 000000000..c833d7fef --- /dev/null +++ b/tests/pyreverse/data/classes_No_Name.puml @@ -0,0 +1,42 @@ +@startuml classes_No_Name +set namespaceSeparator none +class "Ancestor" as data.clientmodule_test.Ancestor { +attr : str +cls_member + +get_value() +set_value(value) +} +class "<color:red>CustomException</color>" as data.suppliermodule_test.CustomException { + +} +class "DoNothing" as data.suppliermodule_test.DoNothing { + +} +class "DoNothing2" as data.suppliermodule_test.DoNothing2 { + +} +class "DoSomething" as data.suppliermodule_test.DoSomething { +my_int : Optional[int] +my_string : str + +do_it(new_int: int) -> int +} +class "Interface" as data.suppliermodule_test.Interface { + + +get_value() +set_value(value) +} +class "Specialization" as data.clientmodule_test.Specialization { +TYPE : str +relation +relation2 +top : str +} +data.clientmodule_test.Specialization --|> data.clientmodule_test.Ancestor +data.clientmodule_test.Ancestor ..|> data.suppliermodule_test.Interface +data.suppliermodule_test.DoNothing --* data.clientmodule_test.Ancestor : cls_member +data.suppliermodule_test.DoNothing --* data.clientmodule_test.Specialization : relation +data.suppliermodule_test.DoNothing2 --* data.clientmodule_test.Specialization : relation2 +@enduml |