diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-01-02 23:21:23 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-01-02 23:52:24 +0100 |
commit | fffde57ac06ace43d74a04f799fabe1724d83ace (patch) | |
tree | bd14fe27bb389dd85ac12da6d564f56629411558 /tests/pyreverse | |
parent | 15c8825eeb4c7546f2c8e5c5a044e0f25fc9d4e6 (diff) | |
download | pylint-git-fffde57ac06ace43d74a04f799fabe1724d83ace.tar.gz |
Format docstrings with ``pydocstringformatter``
Diffstat (limited to 'tests/pyreverse')
-rw-r--r-- | tests/pyreverse/test_diadefs.py | 3 | ||||
-rw-r--r-- | tests/pyreverse/test_inspector.py | 4 | ||||
-rw-r--r-- | tests/pyreverse/test_printer_factory.py | 4 | ||||
-rw-r--r-- | tests/pyreverse/test_utils.py | 3 | ||||
-rw-r--r-- | tests/pyreverse/test_writer.py | 4 |
5 files changed, 7 insertions, 11 deletions
diff --git a/tests/pyreverse/test_diadefs.py b/tests/pyreverse/test_diadefs.py index b17279280..5fe73bf36 100644 --- a/tests/pyreverse/test_diadefs.py +++ b/tests/pyreverse/test_diadefs.py @@ -128,7 +128,8 @@ class TestDefaultDiadefGenerator: self, default_config: PyreverseConfig, get_project: Callable ) -> None: """functional test of relations extraction; - different classes possibly in different modules""" + different classes possibly in different modules + """ # XXX should be catching pyreverse environment problem but doesn't # pyreverse doesn't extract the relations but this test ok project = get_project("data") diff --git a/tests/pyreverse/test_inspector.py b/tests/pyreverse/test_inspector.py index dec38f541..6fff4e5fc 100644 --- a/tests/pyreverse/test_inspector.py +++ b/tests/pyreverse/test_inspector.py @@ -13,9 +13,7 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE -""" - for the visitors.diadefs module -""" +"""for the visitors.diadefs module""" # pylint: disable=redefined-outer-name import os diff --git a/tests/pyreverse/test_printer_factory.py b/tests/pyreverse/test_printer_factory.py index f2ad7106a..f39b90dad 100644 --- a/tests/pyreverse/test_printer_factory.py +++ b/tests/pyreverse/test_printer_factory.py @@ -3,9 +3,7 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE -""" -Unit tests for pylint.pyreverse.printer_factory -""" +"""Unit tests for pylint.pyreverse.printer_factory""" import pytest diff --git a/tests/pyreverse/test_utils.py b/tests/pyreverse/test_utils.py index c631917d9..94ee858e0 100644 --- a/tests/pyreverse/test_utils.py +++ b/tests/pyreverse/test_utils.py @@ -109,7 +109,8 @@ def test_infer_node_2(mock_infer: Any, mock_get_annotation: Any) -> None: def test_infer_node_3() -> None: """Return a set containing a nodes.ClassDef object when the attribute - has a type annotation""" + has a type annotation + """ node = astroid.extract_node( """ class Component: diff --git a/tests/pyreverse/test_writer.py b/tests/pyreverse/test_writer.py index b436b65e9..426cef68e 100644 --- a/tests/pyreverse/test_writer.py +++ b/tests/pyreverse/test_writer.py @@ -17,9 +17,7 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE -""" -Unit test for ``DiagramWriter`` -""" +"""Unit test for ``DiagramWriter``""" import codecs |