mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 04:41:00 +00:00
[fix] fix KeyError: 'ipv6'
tests/units/network/test_network.py requires a call to searx.network.network.initialize Depending of the test order execution, this function was sometimes call in another test, sometimes not. This commit ensure there is a call to initialize()
This commit is contained in:
parent
f92a8e432a
commit
605124679d
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue