diff --git a/testing/test_pluginmanager.py b/testing/test_pluginmanager.py index de59647..ff264eb 100644 --- a/testing/test_pluginmanager.py +++ b/testing/test_pluginmanager.py @@ -124,16 +124,15 @@ class A: def test_register_skips_properties(he_pm: PluginManager) -> None: - property_was_executed = False - class A: @property def some_func(self): - pass + self.property_was_executed = True + return None a = A() he_pm.register(a) - assert not property_was_executed + assert not a.property_was_executed def test_register_skips_pydantic_fields(he_pm: PluginManager) -> None: