move interop tests tools into tests folder

This commit is contained in:
pacrob
2025-01-25 15:16:54 -07:00
parent 460db3dce8
commit e0814c9860
13 changed files with 16 additions and 14 deletions

View File

@ -38,7 +38,8 @@ lint:
)
test:
python -m pytest tests
# remove core specification once interop tests pass
python -m pytest tests/core
# protobufs management

View File

@ -100,7 +100,7 @@ GitHub interface and make sure all tests are passing. In general pull requests t
do not pass the CI build yet won't get reviewed unless explicitly requested.
If the pull request introduces changes that should be reflected in the release notes,
please add a `newsfragment` file as explained
please add a newsfragment file as explained
`here <https://github.com/ethereum/py-libp2p/blob/main/newsfragments/README.md>`_.
If possible, the change to the release notes file should be included in the commit that

View File

@ -23,6 +23,7 @@ extras_require = {
"towncrier>=24,<25",
],
"test": [
"p2pclient==0.2.0",
"pytest>=7.0.0",
"pytest-xdist>=2.4.0",
"pytest-trio>=0.5.2",

View File

@ -21,10 +21,10 @@ from libp2p.tools.factories import (
HostFactory,
PubsubFactory,
)
from libp2p.tools.interop.daemon import (
from tests.utils.interop.daemon import (
make_p2pd,
)
from libp2p.tools.interop.utils import (
from tests.utils.interop.utils import (
connect,
)

View File

@ -4,7 +4,7 @@ import trio
from libp2p.tools.factories import (
HostFactory,
)
from libp2p.tools.interop.utils import (
from tests.utils.interop.utils import (
connect,
)

View File

@ -16,15 +16,15 @@ from libp2p.peer.peerinfo import (
from libp2p.tools.factories import (
HostFactory,
)
from libp2p.tools.interop.envs import (
GO_BIN_PATH,
)
from libp2p.tools.interop.process import (
BaseInteractiveProcess,
)
from libp2p.typing import (
TProtocol,
)
from tests.utils.interop.envs import (
GO_BIN_PATH,
)
from tests.utils.interop.process import (
BaseInteractiveProcess,
)
ECHO_PATH = GO_BIN_PATH / "echo"
ECHO_PROTOCOL_ID = TProtocol("/echo/1.0.0")

View File

@ -22,12 +22,12 @@ from libp2p.pubsub.subscription import (
from libp2p.tools.factories import (
PubsubFactory,
)
from libp2p.tools.interop.utils import (
connect,
)
from libp2p.utils import (
read_varint_prefixed_bytes,
)
from tests.utils.interop.utils import (
connect,
)
TOPIC_0 = "ABALA"
TOPIC_1 = "YOOOO"