We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 666038d commit 45740dcCopy full SHA for 45740dc
1 file changed
tests/test_class.py
@@ -70,3 +70,11 @@ def test_class_inheritance():
70
def test_class_includes_classmethods_when_enabled():
71
cls = Class(ExampleClassC, classmethod=True)
72
assert "class_method" in [method.name for method in cls.methods]
73
+
74
75
+def test_instance_classmethod_filter_only_excludes_classmethods():
76
+ instance = ExampleClassC()
77
+ cls = Class(instance, classmethod=False)
78
+ method_names = [method.name for method in cls.methods]
79
+ assert "public_method" in method_names
80
+ assert "class_method" not in method_names
0 commit comments