Skip to content

Commit 2536c62

Browse files
committed
explicitly test that properties are ignored on both classes and instances
1 parent 61a9a86 commit 2536c62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/test_pluginmanager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def some_func(self):
132132
self.property_was_executed = True # pragma: no cover
133133
return None # pragma: no cover
134134

135+
# test registering it as a class
136+
he_pm.register(ClassWithProperties)
137+
# test registering it as an instance
135138
test_plugin = ClassWithProperties()
136139
he_pm.register(test_plugin)
137140
assert not test_plugin.property_was_executed

0 commit comments

Comments
 (0)