20 lines
627 B
Python
20 lines
627 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""单页验证:仅对人事报表页跑 process_page,确认 CONFIRM 修复后能产出真实报表 Excel。"""
|
|
import dl_export as X
|
|
|
|
def main():
|
|
X.ensure()
|
|
X.call("find_tab", {"url": "2haohr.com"})
|
|
p = {
|
|
"full_path": "02_人事 / 人事报表",
|
|
"url": "https://2haohr.com/personnel/employee/personnel-report/home",
|
|
"node_key": "test_personnel_report",
|
|
"screenshot_path": None,
|
|
}
|
|
n = X.process_page(p, 1, 1)
|
|
X.log("单页测试产出: %d 个文件, SAVED=%d" % (n, len(X.SAVED)))
|
|
|
|
if __name__ == "__main__":
|
|
main()
|