sync update from LAN repo (source ji @ 85078a31)

This commit is contained in:
gozeros committed 2026-10-21 15:09:16 +08:00
1 parent 5d6627af50
commit e602d88695
864 files changed
+99150 -6346

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,14 @@ def _request(
)
def test_seed_includes_independent_3q_slots() -> None:
codes = [row["business_code"] for row in DEFAULT_BUSINESS_ROWS]
assert codes[:5] == ["3Q", "6BF", "7BF", "8BF", "AFX"]
assert codes[5:10] == ["3q-1", "3q-2", "3q-3", "3q-4", "3q-5"]
assert "6-1" in codes and "7-4" in codes
assert codes.index("3q-5") < codes.index("6-1")
@pytest.mark.asyncio
async def test_only_administrators_can_update_non_8bf_business_mappings() -> None:
request = _request("user")