예제 #1
0
 def _init_downloadmanager(self):
     log.init.debug("Initializing downloads...")
     download_manager = downloads.DownloadManager(self.win_id, self)
     objreg.register('download-manager', download_manager, scope='window',
                     window=self.win_id)
     download_model = downloads.DownloadModel(download_manager)
     objreg.register('download-model', download_model, scope='window',
                     window=self.win_id)
예제 #2
0
def test_download_model(qapp, qtmodeltester, config_stub, cookiejar_and_cache):
    """Simple check for download model internals."""
    config_stub.data = {'general': {'private-browsing': False}}
    manager = downloads.DownloadManager(win_id=0)
    model = downloads.DownloadModel(manager)
    qtmodeltester.check(model)