从导航显示与顶栏去掉「对冲计划」开关与入口。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-09-30 23:28:01 +08:00
parent 0acba5e351
commit 56df9a596f
7 changed files with 20 additions and 30 deletions
+9
View File
@@ -47,6 +47,15 @@ class RemoveHedgeSmokeTests(unittest.TestCase):
src = inspect.getsource(m)
self.assertNotIn("hedge_plan", src)
def test_nav_display_meta_no_hedge(self):
from lib.instance.instance_display_prefs_lib import display_meta_for_ui, tab_allowed
from lib.instance.instance_embed_lib import EMBED_TABS
labels = [e["label"] for g in display_meta_for_ui() for e in g["entries"]]
self.assertNotIn("对冲计划", labels)
self.assertFalse(tab_allowed("hedge_plan"))
self.assertNotIn("hedge_plan", EMBED_TABS)
if __name__ == "__main__":
unittest.main()