test: added test configuration to always mock zmq context to fix zmq port congestion issues
ref: N25B-386
This commit is contained in:
10
test/conftest.py
Normal file
10
test/conftest.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
from mock import patch, MagicMock
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
|
def mock_zmq_context():
|
||||||
|
with patch("zmq.Context") as mock:
|
||||||
|
mock.instance.return_value = MagicMock()
|
||||||
|
yield mock
|
||||||
Reference in New Issue
Block a user