Commit Graph

276 Commits

Author SHA1 Message Date
Alex Stokes
733b1d08b6
Merge pull request #372 from ralexstokes/add-py36-compatibility
Add py36 compatibility
2019-12-10 17:28:49 -08:00
NIC Lin
ad379221b9
Merge pull request #373 from NIC619/refactor_and_cleanup_gossipsub
Refactor and cleanup gossipsub
2019-12-07 16:28:55 +08:00
Chih Cheng Liang
82dcce214a
Remove kademlia module (#377)
* Remove kademlia and routing/kademlia

* cleanup

* Fix routed_host test

* lint mypy

* fix doc

* remove set_up_nodes_by_transport_and_disc_opt and fix typing
2019-12-06 14:14:33 +08:00
NIC619
db0017ddbb
Fix lint after applying suggestion 2019-12-05 17:33:07 +08:00
NIC Lin
b4900d53da
Apply suggestions from code review
Co-Authored-By: Chih Cheng Liang <chihchengliang@gmail.com>
2019-12-05 15:21:09 +08:00
NIC619
fae3798ca9
Apply PR feedback: correct the comment in test 2019-12-05 14:40:49 +08:00
NIC619
8e591229fd
Update the sleep time in test_handle_prune 2019-12-03 23:10:56 +08:00
NIC619
bb15c817b1
Fix var access before assignment 2019-12-03 22:14:45 +08:00
NIC619
ea6cd30a16
Add back some comment and TODO. Add comment to tests 2019-12-03 18:45:33 +08:00
NIC619
60bd4694a4
Extend wait time for test to pass 2019-12-03 18:03:45 +08:00
NIC619
b405fd76e9
Add test for gossip heartbeat 2019-12-03 15:49:58 +08:00
NIC619
8dec0b111d
Add test for mesh heartbeat 2019-12-03 15:49:45 +08:00
Alex Stokes
63fd531ed0
Fixes to add python 3.6 compatibility 2019-12-02 16:33:32 -08:00
NIC619
1c54c38ca7
Fix lint and add signing_strict to interop tests 2019-11-29 17:24:40 +08:00
NIC619
f4e86b1172
Add tests for failed signature validation cases 2019-11-29 14:13:07 +08:00
NIC619
d5d6962dce
Update Pubsub fixture and test 2019-11-27 17:15:24 +08:00
NIC Lin
da10fc8531
Merge pull request #360 from NIC619/store_our_keypair_in_peerstore
Store our keypair in peerstore
2019-11-27 17:14:36 +08:00
Jason Carver
d589daf00d Fill in template variables 2019-11-26 13:33:57 -08:00
Jason Carver
d1b5a56ccf Match linting rules after merging in template 2019-11-26 13:33:08 -08:00
Jason Carver
27da312285 Splice in project template
I tried to merge it so that future updates from the template will be
much easier.

The template is hosted at:
https://github.com/ethereum/ethereum-python-project-template
2019-11-26 13:30:41 -08:00
NIC619
94c7a0bca4
Apply PR feedback and fix 2019-11-26 14:04:28 +08:00
NIC619
076dae50f3
Fix missing BasicHost interface update 2019-11-25 22:05:33 +08:00
Chih Cheng Liang
bcd7890124
Move test utilities to tools (#356)
* move test factories to libp2p/tools

* remove unused inits

* move pubsub test utils to tools

* cleanup test_interop

* fix typing libp2p/tools/utils

* add typing to pubsub utils

* fix factories typing

* fix typing for floodsub_integration_test_settings

* fix rest of the typing

* fix isort
2019-11-21 11:47:54 +08:00
Alex Stokes
29873584dc
update test for identify and ping using new test fixture via PR feedback 2019-11-07 21:11:35 -08:00
Alex Stokes
30dee28ef2
add asynccontextmanager utility for a pair of connected hosts 2019-11-07 20:59:01 -08:00
Alex Stokes
9c05e2b0bb
add basic test for identify 2019-11-07 08:05:39 -08:00
Alex Stokes
e61a5a677f
clean up tests w/ default protocols in place 2019-11-07 07:51:44 -08:00
mhchia
10dd997805
Reorganize factories 2019-11-06 12:11:09 -08:00
Alex Stokes
a07c3b0fb0
modify factories to fix tests 2019-11-06 12:11:01 -08:00
Alex Stokes
3deccac2da
fix tests 2019-11-06 12:10:58 -08:00
Alex Stokes
fbdd52cfdc
Go with immutable datatype in lieu of mutable datatype 2019-11-06 11:25:12 -08:00
Alex Stokes
c8a5f6f8d7
Run docformatter over changes 2019-11-05 17:50:11 -08:00
Alex Stokes
94984be4df
Avoid hard-coding ports where it is not relevant for Kademlia tests 2019-11-05 17:50:11 -08:00
Alex Stokes
700209c50a
Merge pull request #315 from ralexstokes/add-ping-protocol
Add `ping` protocol.
2019-11-06 10:14:39 +09:00
Piper Merriam
ded3792924
Merge pull request #331 from dmuhs/fix/docs-format
Add automatic docstring formatting
2019-10-28 09:39:52 -06:00
Dominik Muhs
bafdd8512d Enforce pre-summary newline in docstrings 2019-10-24 20:10:45 +02:00
Dominik Muhs
714126faf5 Update secio tests to new initiator flag 2019-10-24 19:30:57 +02:00
Dominik Muhs
c0452c961b Update stream muxer conftest 2019-10-24 19:25:51 +02:00
Alex Stokes
d795a9b854
Add tests for ping protocol 2019-10-24 19:53:04 +09:00
Alex Stokes
1bf0c31d1f
add basic test for default protocols 2019-10-24 17:36:34 +09:00
Dominik Muhs
2af97240c5 Fix import formatting 2019-10-24 09:16:58 +02:00
Dominik Muhs
eef505f2d9 Add automatic docstring formatter and apply 2019-10-24 08:41:10 +02:00
Aratz M. Lasa
ac9feef26c Pull request feedback 2019-10-15 20:32:25 +02:00
Aratz M. Lasa
d1d91e4091 Refactored for 'lint' testenv 2019-10-15 19:02:03 +02:00
Aratz M. Lasa
8143563831 Added tests for 'RoutedHost' and modified 'FindPeer' 2019-10-15 01:01:16 +02:00
Alex Stokes
673ce40133
Add basic tests for ed25519 keys 2019-09-24 10:06:35 -07:00
mhchia
da34b086d5
Merge branch 'master' into fix/change-notifee-and-add-tests-for-swarm-conn-and-mplex 2019-09-24 13:50:54 +08:00
mhchia
006002f687
Move interop tests out of tests
It is moved to the top level package `tests_interop`, to avoid circular
dependency, with the dependency moved to `tox`.
2019-09-23 22:00:40 +08:00
mhchia
95ae718e3d
Raise ParseError in read_delim 2019-09-23 16:01:22 +08:00
mhchia
92deae41dc
Change SwarmConn.conn to muxed_conn 2019-09-23 15:46:50 +08:00