예제 #1
0
파일: test_engine.py 프로젝트: 1012/scrapy
 def stop(self):
     self.port.stopListening()
     for name, signal in vars(signals).items():
         if not name.startswith('_'):
             disconnect_all(signal)
     self.crawler.uninstall()
     self.deferred.callback(None)
예제 #2
0
파일: test_engine.py 프로젝트: xacprod/ve1
 def stop(self):
     self.port.stopListening()
     for name, signal in vars(signals).items():
         if not name.startswith('_'):
             disconnect_all(signal)
     self.crawler.uninstall()
     self.deferred.callback(None)
예제 #3
0
 def stop(self):
     self.port.stopListening()  # FIXME: wait for this Deferred
     for name, signal in vars(signals).items():
         if not name.startswith('_'):
             disconnect_all(signal)
     self.deferred.callback(None)
     return self.crawler.stop()
예제 #4
0
    def disconnect_all(self, signal, **kwargs):
        """
        Disconnect all receivers from the given signal.

        :param signal: the signal to disconnect from
        :type signal: object
        """
        kwargs.setdefault('sender', self.sender)
        return _signal.disconnect_all(signal, **kwargs)
예제 #5
0
    def disconnect_all(self, signal, **kwargs):
        """
        Disconnect all receivers from the given signal.

        :param signal: the signal to disconnect from
        :type signal: object
        """
        kwargs.setdefault('sender', self.sender)
        return _signal.disconnect_all(signal, **kwargs)
예제 #6
0
 def tearDown(self):
     for name, signal in vars(signals).items():
         if not name.startswith('_'):
             disconnect_all(signal)
예제 #7
0
 def disconnect_all(self, *a, **kw):
     kw.setdefault('sender', self.sender)
     return signal.disconnect_all(*a, **kw)
예제 #8
0
 def tearDown(self):
     for name, signal in vars(signals).items():
         if not name.startswith('_'):
             disconnect_all(signal)
예제 #9
0
 def tearDown(self):
     for name, signal in vars(signals).items():
         if not name.startswith('_'):
             disconnect_all(signal)
     self.pipe.close_spider(self.spider)
예제 #10
0
 def tearDown(self):
     for name, signal in vars(signals).items():
         if not name.startswith('_'):
             disconnect_all(signal)
     self.pipe.close_spider(self.spider)