feat: production-harden app and finalize merge-ready UX/theme baseline
- complete tokenized theme preset system and admin style guide visibility - refine dashboard layout/scroll behavior and shared async/request UI states - add user nav-visibility settings across API, migration, and frontend stores - harden security headers/CSP handling and related test coverage - enforce CI repository hygiene + frontend contract/theme/build quality gates - update docs/env references and make migration smoke test head-aware
This commit is contained in:
parent
ab1d29b203
commit
ae2ca8f149
66 changed files with 5655 additions and 853 deletions
|
|
@ -1,15 +1,24 @@
|
|||
from alembic.config import Config
|
||||
from alembic.script import ScriptDirectory
|
||||
import pytest
|
||||
from sqlalchemy import text
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
|
||||
def expected_head_revision() -> str:
|
||||
script = ScriptDirectory.from_config(Config("alembic.ini"))
|
||||
head = script.get_current_head()
|
||||
assert head is not None
|
||||
return head
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
@pytest.mark.smoke
|
||||
@pytest.mark.db
|
||||
@pytest.mark.asyncio
|
||||
async def test_schema_head_revision_is_available(db_session: AsyncSession) -> None:
|
||||
result = await db_session.execute(text("SELECT version_num FROM alembic_version"))
|
||||
assert result.scalar_one() == "20260217_0007"
|
||||
assert result.scalar_one() == expected_head_revision()
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue