From 4da3862f492f017be3149a5b89f365335f0bf746 Mon Sep 17 00:00:00 2001 From: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com> Date: Sat, 14 Aug 2021 21:34:00 +0200 Subject: ``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 --- tests/pyreverse/test_diadefs.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/pyreverse/test_diadefs.py') diff --git a/tests/pyreverse/test_diadefs.py b/tests/pyreverse/test_diadefs.py index 3f08c1f3d..e38d1dc1f 100644 --- a/tests/pyreverse/test_diadefs.py +++ b/tests/pyreverse/test_diadefs.py @@ -141,8 +141,10 @@ def test_known_values1(HANDLER, PROJECT): classes = _process_classes(cd.objects) assert classes == [ (True, "Ancestor"), + (True, "CustomException"), (True, "DoNothing"), (True, "DoNothing2"), + (True, "DoSomething"), (True, "Interface"), (True, "Specialization"), ] -- cgit v1.2.1