mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Remove pylint:disable
This commit is contained in:
@ -14,13 +14,11 @@ def test_init():
|
||||
for _ in range(10):
|
||||
random_id_string += random.SystemRandom().choice(ALPHABETS)
|
||||
peer_id = ID(random_id_string.encode())
|
||||
# pylint: disable=protected-access
|
||||
assert peer_id == random_id_string.encode()
|
||||
|
||||
|
||||
def test_no_init_value():
|
||||
with pytest.raises(Exception) as _:
|
||||
# pylint: disable=no-value-for-parameter
|
||||
ID()
|
||||
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ def test_init_():
|
||||
|
||||
def test_init_no_value():
|
||||
with pytest.raises(Exception) as _:
|
||||
# pylint: disable=no-value-for-parameter
|
||||
PeerInfo()
|
||||
|
||||
|
||||
@ -50,7 +49,6 @@ def test_info_from_p2p_addr_invalid(addr):
|
||||
|
||||
|
||||
def test_info_from_p2p_addr_valid():
|
||||
# pylint: disable=line-too-long
|
||||
m_addr = multiaddr.Multiaddr(
|
||||
"/ip4/127.0.0.1/tcp/8000/p2p/3YgLAeMKSAPcGqZkAt8mREqhQXmJT8SN8VCMN4T6ih4GNX9wvK8mWJnWZ1qA2mLdCQ"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user