def test_no_blocklist_update(config_stub, download_stub, data_tmpdir, basedir, tmpdir, win_registry):
 config_stub.data = {'content': {'host-block-lists': None, 'host-blocking-enabled': True}}
 host_blocker = adblock.HostBlocker()
 host_blocker.adblock_update()
 host_blocker.read_hosts()
 for str_url in URLS_TO_CHECK:
  assert (not host_blocker.is_blocked(QUrl(str_url)))

def test_no_blocklist_update ( config_stub , download_stub , data_tmpdir , basedir , tmpdir , win_registry ) : config_stub . data = { 'content' : { 'host-block-lists' : None , 'host-blocking-enabled' : True } } host_blocker = adblock . HostBlocker ( ) host_blocker . adblock_update ( ) host_blocker . read_hosts ( ) for str_url in URLS_TO_CHECK : assert ( not host_blocker . is_blocked ( QUrl ( str_url ) ) )
ensure no url is blocked when no block list exists .