Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Fix style errors

Matt Mayfield40f4b262d204
diff --git a/tests/test_feedexport.py b/tests/test_feedexport.py
index 4d533142b..0d5b0f08e 100644
--- a/tests/test_feedexport.py
+++ b/tests/test_feedexport.py
@@ -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