Fix style errors

This commit is contained in:
Matt Mayfield 2022-12-12 12:36:29 -05:00
parent 0c1e547697
commit 40f4b262d2
1 changed files with 4 additions and 2 deletions

View File

@ -680,21 +680,23 @@ class FeedExportTestBase(ABC, unittest.TestCase):
break
return result
class InstrumentedFeedSlot(_FeedSlot):
"""Instrumented _FeedSlot subclass for keeping track of calls to
start_exporting and finish_exporting."""
def start_exporting(self):
self.update_listener('start')
super().start_exporting()
def finish_exporting(self):
self.update_listener('finish')
super().start_exporting()
@classmethod
def subscribe__listener(cls, listener):
cls.update_listener = listener.update
class IsExportingListener:
"""When subscribed to InstrumentedFeedSlot, keeps track of when
a call to start_exporting has been made without a closing call to