py-libp2p/tests
Robert Zajac 9052e8f8bd
The Gossipsub PR (#162)
* Add handle_rpc call to pubsub

* Scaffold gossipsub functions

* Add timer

* Implement most of mesh construction

* Implement emit and handle

* Implement fanout heartbeat

* Refactor emit

* some gossipsub cleanup and test

* minor lint stuff, more to come

* Implement publish

* Fix comment

* Modify pubsub/gossipsub so that floodsub tests pass using gossipsub router

* Add floodsub tests to gossipsub

* Handle case where select_from_minus, num_to_select > size(pool-minus)

* Add topic membership

* Implement handle ihave

* Implement most of iwant

* Add mcache.add and comments

* Refactor handle_ihave

* Implement stream write in handle_iwant

* Implement gossip heartbeat

* unresolved vars

* initial mcache code

* documenting mcache

* writing test/debugging mcache

* finished mcache test and debugged

* Make gossipsub backward compatibility its own file

* remove mcache prints

* DEBUGGING

* Add sender_peer_id to handle_rpc to get gossip test passing

* Modify gossipsub to make fanout work

* fanout maintenance test

* debugging gsub GOSSIP

* DEBUGGING

* debugged sender seen cachce

* adding lru, removing prints

* pylint cleanup

* Fix github comments in PR

* minor floodsub possible bugfix
2019-05-06 23:44:13 -04:00
..
examples fix existing tests 2019-03-17 19:33:40 -04:00
kademlia add simple test 2019-04-28 17:57:57 -04:00
libp2p [WIP] PubSub and FloodSub development (#133) 2019-03-23 13:52:02 -04:00
network Migrate to new project structure. 2019-01-09 21:38:56 +03:00
peer Update unit tests from peer package (#103) 2019-01-12 11:31:08 -05:00
protocol_muxer fix linting issues 2019-03-17 21:30:56 -04:00
pubsub The Gossipsub PR (#162) 2019-05-06 23:44:13 -04:00
routing updated peerinfo encoding stored in DHT 2019-04-28 17:38:40 -04:00
transport Migrate to new project structure. 2019-01-09 21:38:56 +03:00
__init__.py Peer tests and minor peer features/bug fixes. 2018-11-02 16:16:46 -04:00
README.md Add readme describing test naming convention 2018-10-21 14:04:43 -04:00
test_example.py WIP CI Build Errors (#76) 2018-11-26 18:24:29 -05:00
utils.py fix linting issues 2019-03-17 21:30:56 -04:00

pytest gathers tests according to a naming convention. By default any file that is to contain tests must be named starting with test_ and any function in a file that should be treated as a test must also start with test_.