Skip to content

Commit dc562b8

Browse files
committed
Fix test case
1 parent 54ebdc7 commit dc562b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_reqlimit.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import json
22
import os
33
from html2notion.translate.html2json_yinxiang import Html2JsonYinXiang
4+
from html2notion.translate.import_stats import ImportStats
5+
46

57
paragram_rich_content = f'<div>{"Some words" * 400} more words</div>'
68
block_max_conent = "Some words" * 200
@@ -49,7 +51,8 @@ def test_reqlimit():
4951

5052
for html_content in html_jsons:
5153
body_content = '<body>' + html_content + '</body>'
52-
yinxiang = Html2JsonYinXiang(body_content)
54+
import_stats = ImportStats()
55+
yinxiang = Html2JsonYinXiang(body_content, import_stats)
5356
yinxiang.process()
5457
json_obj = yinxiang.children
5558
# print(json.dumps(json_obj, indent=4))

0 commit comments

Comments
 (0)