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()
Этот коммит содержится в:
Alexandre Flament 2021-05-07 10:57:55 +02:00 коммит произвёл Noémi Ványi
родитель 5e53e9412d
Коммит 4a187d41be
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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()