blob: 5aa5138e4e31b8dd58aaf8100c58126ea30e1ef5 (
plain) (
tree)
|
|
from __future__ import print_function, unicode_literals
import glob
import json
def test_everything(realish_eventrouter, team):
datafiles = glob.glob("_pytest/data/websocket/*.json")
for fname in sorted(datafiles):
data = json.loads(open(fname, 'r').read())
team.ws.add(data)
realish_eventrouter.receive_ws_callback(team.team_hash)
realish_eventrouter.handle_next()
assert len(realish_eventrouter.queue) == 14
|