UT: Use `self` instead of class name

This commit is contained in:
Mike Salvatore 2022-09-06 13:00:01 -04:00
parent 59c58b3115
commit 377bb293fe
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ def test_subscribe_publish__with_event_body(
event = None
def __call__(self, event):
MyCallable.call_count += 1
MyCallable.event = event
self.call_count += 1
self.event = event
event = "my event!"
my_callable = MyCallable()