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:
@ -25,6 +25,7 @@ from libp2p.peer.id import ID as PeerID
|
||||
from libp2p.security.base_session import BaseSession
|
||||
from libp2p.security.base_transport import BaseSecureTransport
|
||||
from libp2p.security.secure_conn_interface import ISecureConn
|
||||
from libp2p.typing import TProtocol
|
||||
|
||||
from .exceptions import (
|
||||
IncompatibleChoices,
|
||||
@ -37,7 +38,7 @@ from .exceptions import (
|
||||
)
|
||||
from .pb.spipe_pb2 import Exchange, Propose
|
||||
|
||||
ID = "/secio/1.0.0"
|
||||
ID = TProtocol("/secio/1.0.0")
|
||||
|
||||
NONCE_SIZE = 16 # bytes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user