From 343de2db51ec9c2e6ea95e79fe87d7f0c4de63d1 Mon Sep 17 00:00:00 2001 From: Ellis Date: Tue, 18 Sep 2018 13:33:05 -0400 Subject: [PATCH] Added case for whitelisted url with * wildcard --- tests/unit/browser/test_adblock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/browser/test_adblock.py b/tests/unit/browser/test_adblock.py index ec43aa772..470bce5cd 100644 --- a/tests/unit/browser/test_adblock.py +++ b/tests/unit/browser/test_adblock.py @@ -33,7 +33,7 @@ pytestmark = pytest.mark.usefixtures('qapp', 'config_tmpdir') # TODO See ../utils/test_standarddirutils for OSError and caplog assertion -WHITELISTED_HOSTS = ('qutebrowser.org', 'mediumhost.io') +WHITELISTED_HOSTS = ('qutebrowser.org', 'mediumhost.io', 'http://*.edu') BLOCKLIST_HOSTS = ('localhost', 'mediumhost.io', @@ -50,7 +50,8 @@ URLS_TO_CHECK = ('http://localhost', 'http://ads.worsthostever.net', 'http://goodhost.gov', 'ftp://verygoodhost.com', - 'http://qutebrowser.org') + 'http://qutebrowser.org', + 'http://veryverygoodhost.edu') class BaseDirStub: