修复福袋详情OCR v2与调试日志

This commit is contained in:
Your Name committed 2026-06-03 01:22:13 +08:00
1 parent 2c6f024a24
commit 1d37d57c90
119 files changed
+5582 -767

No files matched your search

+13
View File
@@ -68,6 +68,19 @@ class TestUnderlyingOperationsPaths:
)
assert not bad_pattern.search(src)
def test_no_dirname_target_pic_pattern_anywhere(self):
sources = [
_read("operations", "screenshot_operations.py"),
_read("douyin", "core", "underlying_operations_pkg", "screenshot_direct.py"),
]
combined = "\n".join(sources)
bad_pattern = re.compile(
r"os\.path\.join\(\s*os\.path\.dirname\(__file__\)[^)]*?\"target_pic\""
)
assert not bad_pattern.search(combined), (
"target_pic 路径不应再相对模块目录拼接,应锚到项目根"
)
# ============================================================
# douyin_fudai.py