Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/test'
Browse files Browse the repository at this point in the history
  • Loading branch information
taizan-hokuto committed Nov 16, 2020
2 parents a474899 + c37201f commit a5c7ba5
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/test_default_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,24 +222,6 @@ def test_sponsor_legacy(mocker):
assert ret.author.isChatModerator is False


def test_jsonify_list(mocker):
'''lagacy sponsor(membership)'''
processor = DefaultProcessor()
parser = Parser(is_replay=False)
_json = _open_file("tests/testdata/default/superchat.json")

_, chatdata = parser.parse(parser.get_contents(json.loads(_json)))
data = {
"video_id": "",
"timeout": 7,
"chatdata": chatdata
}

ret = processor.process([data]).json()
tobe = _open_file("tests/testdata/default/jsonified_list.json")
assert ret == tobe


def _open_file(path):
with open(path, mode='r', encoding='utf-8') as f:
return f.read()

0 comments on commit a5c7ba5

Please sign in to comment.