mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Move test utilities to tools (#356)
* move test factories to libp2p/tools * remove unused inits * move pubsub test utils to tools * cleanup test_interop * fix typing libp2p/tools/utils * add typing to pubsub utils * fix factories typing * fix typing for floodsub_integration_test_settings * fix rest of the typing * fix isort
This commit is contained in:
@ -7,17 +7,15 @@ import pexpect
|
||||
import pytest
|
||||
|
||||
from libp2p.io.abc import ReadWriteCloser
|
||||
from tests.configs import LISTEN_MADDR
|
||||
from tests.factories import (
|
||||
from libp2p.tools.constants import GOSSIPSUB_PARAMS, LISTEN_MADDR
|
||||
from libp2p.tools.factories import (
|
||||
FloodsubFactory,
|
||||
GossipsubFactory,
|
||||
HostFactory,
|
||||
PubsubFactory,
|
||||
)
|
||||
from tests.pubsub.configs import GOSSIPSUB_PARAMS
|
||||
|
||||
from .daemon import Daemon, make_p2pd
|
||||
from .utils import connect
|
||||
from libp2p.tools.interop.daemon import Daemon, make_p2pd
|
||||
from libp2p.tools.interop.utils import connect
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user