Skip to content

Commit 63fe060

Browse files
authored
Fix he_pm variable name in tests for property access
1 parent 9d8d198 commit 63fe060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/test_pluginmanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_register_skips_properties(he_pm: PluginManager) -> None:
129129
class A:
130130
@property
131131
def some_func(self):
132-
pass
132+
property_was_executed = True
133133

134134
a = A()
135135
he_pm.register(a)
@@ -148,7 +148,7 @@ def some_attr(self): ...
148148

149149
a = A()
150150
pname = he_pm.register(a)
151-
assert not pm.get_hookcallers(pm.get_plugin(pname))
151+
assert not he_pm.get_hookcallers(he_pm.get_plugin(pname))
152152

153153

154154
def test_register_mismatch_method(he_pm: PluginManager) -> None:

0 commit comments

Comments
 (0)