summaryrefslogtreecommitdiff
path: root/tests/functional/t/too/too_few_public_methods_excluded.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/t/too/too_few_public_methods_excluded.py')
-rw-r--r--tests/functional/t/too/too_few_public_methods_excluded.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/t/too/too_few_public_methods_excluded.py b/tests/functional/t/too/too_few_public_methods_excluded.py
new file mode 100644
index 000000000..35ba873ee
--- /dev/null
+++ b/tests/functional/t/too/too_few_public_methods_excluded.py
@@ -0,0 +1,14 @@
+# pylint: disable=missing-docstring
+from json import JSONEncoder
+
+class Control: # [too-few-public-methods]
+ ...
+
+
+class MyJsonEncoder(JSONEncoder):
+ ...
+
+class InheritedInModule(Control):
+ """This class inherits from a class that doesn't have enough mehods,
+ and its parent is excluded via config, so it doesn't raise."""
+ ...