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
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
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
Dominik Muhs
bafdd8512d
Enforce pre-summary newline in docstrings
2019-10-24 20:10:45 +02:00
Dominik Muhs
eef505f2d9
Add automatic docstring formatter and apply
2019-10-24 08:41:10 +02:00
mhchia
5307c0506b
Change IMuxedConn
to INetConn
in Notifee
2019-09-19 16:31:41 +08:00
mhchia
bb0da41eda
Remove cleanup
...
`cleanup` cancels all tasks in the loop, including the main one run by
`run_until_complete`
2019-09-10 18:01:16 +08:00
mhchia
677531db76
Fix pubsub tests
2019-09-04 15:33:07 +08:00
mhchia
7f20ab781d
Fix gosssipsub tests
2019-09-03 23:37:34 +08:00
mhchia
7385a7a677
Add is_gossipsub
fixture in interop test
...
To use the same code to test against both routers: floodsub and
gossipsub.
2019-09-03 16:49:00 +08:00
mhchia
194b494057
Tested against subscriptions and publish
2019-09-02 23:21:57 +08:00
mhchia
3717dc9adf
Add helper functions
2019-09-02 21:01:13 +08:00
mhchia
56ef0b962c
Add test for host
connect
and disconnect
2019-09-02 17:32:15 +08:00
mhchia
c61a06706a
Refactor interop tests and factories
...
- Add `close` and `disconnect` in `Host`
- Add `close` and `close_peer` in `Network`
- Change `IListener.close` to async, to await for server's closing
- Add factories for security transports, and modify `HostFactory`
2019-08-29 21:38:06 +08:00
mhchia
d35b8ffc64
Conform stream_id
to go-mplex
2019-08-28 21:43:34 +08:00
Alex Stokes
7535a02da7
Clean up key gen
2019-08-15 19:24:30 -07:00
Alex Stokes
d17e6f3392
Fix some test imports that got botched in rebase
2019-08-15 16:46:23 -07:00
Alex Stokes
82bae341a7
Run isort over files that were missing it
2019-08-15 16:33:35 -07:00
Alex Stokes
cda74dd382
Update tests for new logic
2019-08-15 16:33:34 -07:00
Alex Stokes
fb43728661
Mark some slow tests as such
2019-08-15 16:33:33 -07:00
Alex Stokes
3debd2c808
Run black
and isort
w/ the new config
2019-08-13 14:36:42 -07:00
Chih Cheng Liang
c536aa3e07
flake8
2019-08-08 16:09:02 +08:00
NIC619
a1dc68ab70
Apply PR feedback:
...
add validation failed test to `push_msg` test
2019-08-07 11:53:54 +08:00
NIC619
1cea1264a4
Raise exception when topic validation failed
2019-08-06 12:38:31 +08:00
NIC619
b96ef0e6c7
Fix:
...
`_is_subscribed_to_msg` need only subscribe to one of the topics
2019-08-05 18:20:04 +08:00
NIC619
e1b86904e3
Add validate_msg
and test
2019-08-05 18:19:32 +08:00
NIC619
f8ca4fa1ef
Add get_msg_validators
and test
2019-08-05 18:19:32 +08:00
NIC619
1ed14d0cc8
Add remove_topic_validator
test
2019-08-05 18:19:32 +08:00
NIC619
cf69f7e800
Rename to set_topic_validator
and add test
2019-08-05 18:19:31 +08:00
Alex Stokes
7477b29508
run black w/ extended line length
2019-08-04 12:37:41 +08:00
mhchia
0a5b4a88ca
Fix flake8 for the existing code
2019-08-04 00:18:30 +08:00
Alex Stokes
c8005c8113
Run isort
in repo
2019-08-03 17:50:14 +08:00
Alex Stokes
7b7c8ad30d
run black over dangling files
2019-08-02 11:47:08 -07:00
mhchia
2e94fcf56c
Remove pylint:disable
2019-08-02 23:26:06 +08:00
NIC619
cd684aad9e
Update peer_id to type peer.ID in pubsub folder
2019-08-02 14:45:23 +08:00
mhchia
716c60ca6d
Reflect PR feedback
...
- Remove leftover `int` in `GossipsubParams`
- Remove default fields in tests
2019-08-01 21:38:14 +08:00
mhchia
c72dfe1dd3
Use factories and fixtures in pubsub tests
...
Done
- Add factories using factory-boy
- Modify fixtures and tests to use factories
- Modify tests to use fixtures and factories
- Clean up
2019-08-01 13:30:08 +08:00
Alex Stokes
0ae9840928
Run black
over repo
2019-07-31 15:00:12 -07:00
mhchia
ce369d47e9
Refine exception message
2019-07-31 16:23:07 +08:00
Kevin Mai-Husan Chia
c0e253a524
Update tests/pubsub/conftest.py
...
Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-07-31 16:07:48 +08:00