sync update from LAN repo (source dhk-1 @ 3e87be55)

This commit is contained in:
gozeros committed 2026-10-21 15:06:08 +08:00
1 parent ab6068a7c1
commit 42f2a26fa8
1482 files changed
+227759 -9584

No files matched your search

@@ -8,6 +8,7 @@ import pytest
from fastapi import HTTPException
from app.gateway.routers import business_mapping as business_mapping_router
from deerflow.persistence.business_mapping.sql import DEFAULT_BUSINESS_ROWS
class _MappingStore:
@@ -65,6 +66,16 @@ def _request(
)
def test_seed_includes_independent_3q_slots() -> None:
codes = [row["business_code"] for row in DEFAULT_BUSINESS_ROWS]
assert codes[:6] == ["3Q", "6BF", "7BF", "8BF", "AFX", "b5-1"]
assert codes[6:13] == ["3q-0", "3q-1", "3q-2", "3q-3", "3q-4", "3q-5", "3q-6"]
assert DEFAULT_BUSINESS_ROWS[codes.index("b5-1")]["label"] == "任务分析"
assert "6-1" in codes and "7-4" in codes
assert codes.index("3q-0") < codes.index("3q-1")
assert codes.index("3q-6") < codes.index("6-1")
@pytest.mark.asyncio
async def test_only_administrators_can_update_non_8bf_business_mappings() -> None:
request = _request("user")