def setUp(self):
     self.server = StaticMockServer()
     self.server.__enter__()
     self.handler = ScrapyPyppeteerDownloadHandler.from_crawler(get_crawler())
     yield self.handler._engine_started_handler()
예제 #2
0
 def setUp(self):
     self.server = StaticMockServer()
     self.server.__enter__()
     self.handler = ScrapyPyppeteerDownloadHandler.from_crawler(
         get_crawler())
     yield self.handler._launch_browser_signal_handler()