Skip to content

Commit

Permalink
Update test to avoid CI rewriting it and breaking it
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate authored Sep 27, 2024
1 parent 57fd119 commit 8eecd23
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions testing/test_pluginmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8eecd23

Please sign in to comment.