From f3d540b375fc7fb0efcaf2b2daa54e0b5376438a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 7 Sep 2016 18:47:39 +0200 Subject: [PATCH] Fix adblock tests --- tests/unit/browser/test_adblock.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unit/browser/test_adblock.py b/tests/unit/browser/test_adblock.py index 5c33b1141..8c09aa4d8 100644 --- a/tests/unit/browser/test_adblock.py +++ b/tests/unit/browser/test_adblock.py @@ -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.