mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
11 lines
271 B
Python
11 lines
271 B
Python
from unittest.mock import MagicMock
|
|
|
|
def create_mock_connections() -> dict:
|
|
connections = {}
|
|
|
|
for i in range(1, 31):
|
|
peer_id = f"peer-{i}"
|
|
mock_conn = MagicMock(name=f"INetConn-{i}")
|
|
connections[peer_id] = mock_conn
|
|
|
|
return connections |