Commit graph

20 commits

Author SHA1 Message Date
Yuxin Wang
79d4e3b399 Rename test_main to test_core. 2018-10-08 14:00:59 -04:00
Yuxin Wang
1df02a4936 Split the test into multiple functions. 2018-10-08 14:00:45 -04:00
Yuxin Wang
8b1f4c6b7c Add conftest to create and delete test files on session level. 2018-10-08 13:51:02 -04:00
Yuxin Wang
ae6330cafa Unpack the list to arguments. 2018-10-08 10:41:25 -04:00
Yuxin Wang
ea33442949 asyncio.gather needs ordered data structure. 2018-10-08 10:34:39 -04:00
Yuxin Wang
e1f38dcd76 Add test for downloading from multiple peers. 2018-10-07 23:27:22 -04:00
Yuxin Wang
0651c43da3 Use tuple to represent multiple peers. 2018-10-07 23:19:37 -04:00
Yuxin Wang
dc6c44c7e3 Change import order to comply with PEP. 2018-10-07 12:23:27 -04:00
Yuxin Wang
c0fba12bdc Run peer and tracker stop asynchronously. 2018-10-07 12:07:18 -04:00
Yuxin Wang
8db58b4441 Make the tests asynchronous. 2018-10-06 14:18:23 -04:00
Yuxin Wang
2d71e1581d Refactor test_server_refused with asyncio. 2018-10-06 11:01:03 -04:00
Yuxin Wang
13ba10c595 Add test for reporthook. 2018-10-04 00:01:22 -04:00
Yuxin Wang
854d1676bb Return boolean value for start method. 2018-10-01 22:30:46 -04:00
Yuxin Wang
488987a326 Return True/False for start method. 2018-10-01 21:47:53 -04:00
Yuxin Wang
2450554ffb Start server after test files are created. 2018-10-01 15:17:53 -04:00
Yuxin Wang
54bc2c901a Replace exit with stop. 2018-09-30 14:22:55 -04:00
Yuxin Wang
b777ebb616 Fix peer name. 2018-09-30 13:49:24 -04:00
Yuxin Wang
e01da09179 Exit when test finishes. 2018-09-30 13:32:07 -04:00
Yuxin Wang
81fb413818 Add simple test. 2018-09-30 10:12:02 -04:00
Yuxin Wang
cc5bbc4701 Initial commit of test module. 2018-09-29 23:42:35 -04:00