diff options
author | Alexandre Flament <alex@al-f.net> | 2021-05-07 11:05:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 11:05:09 +0200 |
commit | 332e3a2a09d6a708ea2c17d2e731335b051c45aa (patch) | |
tree | 9ea55d34e06efaf4e14c8ad200e5bcb0de9ac882 | |
parent | f92a8e432ab3cf99b9b02c33c38ccbd1869a0bbe (diff) | |
parent | 605124679d9652119ed92ed0b9b082c52adcc569 (diff) | |
download | searxng-332e3a2a09d6a708ea2c17d2e731335b051c45aa.tar.gz searxng-332e3a2a09d6a708ea2c17d2e731335b051c45aa.zip |
Merge pull request #64 from searxng/fix-test-sideeffect
[fix] fix KeyError: 'ipv6'
-rw-r--r-- | tests/unit/network/test_network.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/network/test_network.py b/tests/unit/network/test_network.py index 246dfd85e..e8d33240a 100644 --- a/tests/unit/network/test_network.py +++ b/tests/unit/network/test_network.py @@ -4,12 +4,15 @@ from mock import patch import httpx -from searx.network.network import Network, NETWORKS +from searx.network.network import Network, NETWORKS, initialize from searx.testing import SearxTestCase class TestNetwork(SearxTestCase): + def setUp(self): + initialize() + def test_simple(self): network = Network() |