def setUp(self): self.server = StaticMockServer() self.server.__enter__() self.handler = ScrapyPyppeteerDownloadHandler.from_crawler(get_crawler()) yield self.handler._engine_started_handler()
def setUp(self): self.server = StaticMockServer() self.server.__enter__() self.handler = ScrapyPyppeteerDownloadHandler.from_crawler( get_crawler()) yield self.handler._launch_browser_signal_handler()