summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/components/test_hostblock.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/components/test_hostblock.py b/tests/unit/components/test_hostblock.py
index 00a7a5f8f..a1ae2ad5c 100644
--- a/tests/unit/components/test_hostblock.py
+++ b/tests/unit/components/test_hostblock.py
@@ -570,4 +570,7 @@ def test_subdomain_blocking(config_stub, host_blocker_factory):
config_stub.val.content.blocking.hosts.lists = None
host_blocker = host_blocker_factory()
host_blocker._blocked_hosts.add("example.com")
+ config_stub.val.content.blocking.hosts.block_subdomains = True
assert host_blocker._is_blocked(QUrl("https://subdomain.example.com"))
+ config_stub.val.content.blocking.hosts.block_subdomains = False
+ assert not host_blocker._is_blocked(QUrl("https://subdomain.example.com"))