moved factories to tests

This commit is contained in:
Khwahish Patel
2025-02-21 16:18:43 +05:30
committed by Paul Robinson
parent ddf68ee4e0
commit df72979606
30 changed files with 59 additions and 66 deletions

View File

@ -21,11 +21,6 @@ from libp2p.pubsub.pubsub import (
from libp2p.tools.constants import (
MAX_READ_LEN,
)
from libp2p.tools.factories import (
IDFactory,
PubsubFactory,
net_stream_pair_factory,
)
from libp2p.tools.pubsub.utils import (
make_pubsub_msg,
)
@ -35,6 +30,11 @@ from libp2p.tools.utils import (
from libp2p.utils import (
encode_varint_prefixed,
)
from tests.factories import (
IDFactory,
PubsubFactory,
net_stream_pair_factory,
)
TESTING_TOPIC = "TEST_SUBSCRIBE"
TESTING_DATA = b"data"