Files
pytchat-fork/tests/test_speed_calculator2.py
taizan-hokouto c9c235061c Add tests
2021-07-24 22:46:56 +09:00

16 lines
392 B
Python

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()