Fix adblock tests
This commit is contained in:
parent
955910a0e8
commit
f3d540b375
@ -250,7 +250,8 @@ def test_without_datadir(config_stub, tmpdir, monkeypatch, win_registry):
|
||||
|
||||
|
||||
def test_disabled_blocking_update(basedir, config_stub, download_stub,
|
||||
data_tmpdir, tmpdir, win_registry):
|
||||
data_tmpdir, tmpdir, win_registry,
|
||||
message_mock):
|
||||
"""Ensure no URL is blocked when host blocking is disabled."""
|
||||
config_stub.data = {
|
||||
'content': {
|
||||
@ -285,7 +286,7 @@ def test_no_blocklist_update(config_stub, download_stub,
|
||||
|
||||
|
||||
def test_successful_update(config_stub, basedir, download_stub,
|
||||
data_tmpdir, tmpdir, win_registry):
|
||||
data_tmpdir, tmpdir, win_registry, message_mock):
|
||||
"""Ensure hosts from host-block-lists are blocked after an update."""
|
||||
config_stub.data = {
|
||||
'content': {
|
||||
@ -305,7 +306,7 @@ def test_successful_update(config_stub, basedir, download_stub,
|
||||
|
||||
|
||||
def test_failed_dl_update(config_stub, basedir, download_stub,
|
||||
data_tmpdir, tmpdir, win_registry):
|
||||
data_tmpdir, tmpdir, win_registry, message_mock):
|
||||
"""One blocklist fails to download.
|
||||
|
||||
Ensure hosts from this list are not blocked.
|
||||
|
Loading…
Reference in New Issue
Block a user