Commit graph

15 commits

Author SHA1 Message Date
Yuxin Wang
fc7fe1c59c Add TEST_SMALL_FILE_1 for test_delay(). 2018-10-09 23:53:03 -04:00
Yuxin Wang
35d95ab5e1 Rename the variable for better readability. 2018-10-09 16:53:47 -04:00
Yuxin Wang
792ff2df67 Move tests for result in try block. 2018-10-09 16:50:23 -04:00
Yuxin Wang
33c44e12b5 Add concurrent download tests. 2018-10-09 16:50:09 -04:00
Yuxin Wang
872615f529 Put remove file in finally block. 2018-10-09 16:37:44 -04:00
Yuxin Wang
c8c58f4c92 Wait longer for tracker code to run. 2018-10-09 01:27:48 -04:00
Yuxin Wang
e01c0ffee1 Add artificial delay for peer. 2018-10-09 01:27:01 -04:00
Yuxin Wang
7f62307a3a Cleanup peers information when disconnected. 2018-10-09 00:26:42 -04:00
Yuxin Wang
527c1f2443 Use pytest-asyncio to run test asynchrounouly.
Isolate each test_ functions.
2018-10-08 21:29:51 -04:00
Yuxin Wang
451d43e3bf Add test for publish_refusal. 2018-10-08 14:10:39 -04:00
Yuxin Wang
04f6c67afe Fix typo. 2018-10-08 14:09:52 -04:00
Yuxin Wang
f9eccc6c99 Assert on the result of publish. 2018-10-08 14:09:11 -04:00
Yuxin Wang
0c0969f603 Use pre-defined file sizes to do assert. 2018-10-08 14:08:30 -04:00
Yuxin Wang
554a8e5ac3 Fix name mismatch. 2018-10-08 14:02:32 -04:00
Yuxin Wang
79d4e3b399 Rename test_main to test_core. 2018-10-08 14:00:59 -04:00
Renamed from tests/test_main.py (Browse further)