Appease linter
This commit is contained in:
parent
5e5ff4b89d
commit
ca21c317da
@ -1,3 +1,2 @@
|
|||||||
"""simple-message-channels module."""
|
"""simple-message-channels module."""
|
||||||
|
|
||||||
from simple_message_channels.smc import SimpleMessageChannel # noqa
|
from simple_message_channels.smc import SimpleMessageChannel # noqa
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
"""Sans I/O wire protocol for Hypercore"""
|
"""Sans I/O wire protocol for Hypercore"""
|
||||||
|
|
||||||
__all__ = ["SimpleMessageChannel"]
|
|
||||||
|
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
|
import pyvarint
|
||||||
|
|
||||||
|
__all__ = ["SimpleMessageChannel"]
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class SimpleMessageChannel:
|
class SimpleMessageChannel:
|
||||||
|
@ -3,15 +3,3 @@ async def test_send_produces_bytes(smc):
|
|||||||
|
|
||||||
payload = await smc.send(channel, type, message)
|
payload = await smc.send(channel, type, message)
|
||||||
assert isinstance(payload, bytes)
|
assert isinstance(payload, bytes)
|
||||||
|
|
||||||
|
|
||||||
# async def test_recv_context_manager(smc):
|
|
||||||
# channel, type, message = 0, 0, b"abc"
|
|
||||||
|
|
||||||
# payload = await smc.send(channel, type, message)
|
|
||||||
# assert isinstance(payload, bytes)
|
|
||||||
|
|
||||||
# async with smc.recv(payload) as response:
|
|
||||||
# assert response.channel == channel
|
|
||||||
# assert response.type == type
|
|
||||||
# assert response.message == message
|
|
||||||
|
Loading…
Reference in New Issue
Block a user