Add tests

This commit is contained in:
taizan-hokouto
2021-07-24 22:13:18 +09:00
parent 328889689f
commit c9c235061c
5 changed files with 134 additions and 141 deletions

View File

@@ -0,0 +1,16 @@
import json
import pytchat
from pytchat.parser.live import Parser
from pytchat.processors.speed.calculator import SpeedCalculator
parser = Parser(is_replay=False)
def test_speed_1():
stream = pytchat.create("Hj-wnLIYKjw", seektime = 6000,processor=SpeedCalculator())
while stream.is_alive():
speed = stream.get()
assert speed > 100
break
test_speed_1()