mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
move interop tests tools into tests folder
This commit is contained in:
3
Makefile
3
Makefile
@ -38,7 +38,8 @@ lint:
|
||||
)
|
||||
|
||||
test:
|
||||
python -m pytest tests
|
||||
# remove core specification once interop tests pass
|
||||
python -m pytest tests/core
|
||||
|
||||
# protobufs management
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
1
setup.py
1
setup.py
@ -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",
|
||||
|
||||
@ -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,
|
||||
)
|
||||
|
||||
|
||||
@ -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,
|
||||
)
|
||||
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user