fix(#54): 修复 perf_budget 测试引导 sys.path 挂载(与 core/dashboard 测试一致)

This commit is contained in:
2026-08-05 05:38:34 +08:00
parent 5da367dfd8
commit f12b9fb4a8
2 changed files with 6 additions and 0 deletions
@@ -12,8 +12,11 @@
8. 边界/错误:负 h、负 scroll_y、负视口参数;
9. 空输入。
"""
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import _bootstrap # noqa: F401 (挂载 perf_budget 包)
from perf_budget.lazy_load import (
@@ -10,8 +10,11 @@
6. 空测量值(EMPTY);
7. 边界/错误:负耗时、负预算、负 size、空 name。
"""
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import _bootstrap # noqa: F401 (挂载 perf_budget 包)
from perf_budget.perf_budget import (