From 8eecd23ee22c17c9b04511ec92268adcc9db9673 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 26 Sep 2024 20:15:21 -0700 Subject: [PATCH] Update test to avoid CI rewriting it and breaking it --- testing/test_pluginmanager.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/testing/test_pluginmanager.py b/testing/test_pluginmanager.py index de596477..ff264eb5 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: