Publish curated ITWorx-ModelForge source from 990401737f96c8d46a9f7b0d84994516cadcb6a0
This commit is contained in:
1 parent
7082ab955a
commit
848f0d8f8a
434 files changed
+67298
-4315
No files matched your search
@@ -6,13 +6,13 @@ from types import ModuleType
|
||||
|
||||
import pytest
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy import Engine
|
||||
from sqlalchemy.exc import IntegrityError
|
||||
|
||||
from alembic.config import Config
|
||||
from alembic.migration import MigrationContext
|
||||
from alembic.operations import Operations
|
||||
from alembic.script import ScriptDirectory
|
||||
from sqlalchemy import Engine
|
||||
from sqlalchemy.exc import IntegrityError
|
||||
|
||||
from modelforge_api.domain.release import TARGET_SCHEMA_REVISION
|
||||
from modelforge_api.persistence.models import NodeCredential, NodeEnrollment
|
||||
|
||||
@@ -75,10 +75,23 @@ def test_0023_is_the_linear_auth_step_before_the_current_audit_head() -> None:
|
||||
scripts = ScriptDirectory.from_config(config)
|
||||
migration = _migration()
|
||||
|
||||
assert scripts.get_heads() == ["20260830_0024"]
|
||||
assert scripts.get_heads() == ["20260924_0039"]
|
||||
assert migration.down_revision == "20260828_0022"
|
||||
assert scripts.get_revision("20260830_0024").down_revision == "20260830_0023"
|
||||
assert TARGET_SCHEMA_REVISION == "20260830_0024"
|
||||
assert scripts.get_revision("20260907_0025").down_revision == "20260830_0024"
|
||||
assert scripts.get_revision("20260908_0026").down_revision == "20260907_0025"
|
||||
assert scripts.get_revision("20260908_0027").down_revision == "20260908_0026"
|
||||
assert scripts.get_revision("20260908_0028").down_revision == "20260908_0027"
|
||||
assert scripts.get_revision("20260909_0029").down_revision == "20260908_0028"
|
||||
assert scripts.get_revision("20260909_0030").down_revision == "20260909_0029"
|
||||
assert scripts.get_revision("20260909_0031").down_revision == "20260909_0030"
|
||||
assert scripts.get_revision("20260909_0032").down_revision == "20260909_0031"
|
||||
assert scripts.get_revision("20260909_0033").down_revision == "20260909_0032"
|
||||
assert scripts.get_revision("20260910_0034").down_revision == "20260909_0033"
|
||||
assert scripts.get_revision("20260911_0035").down_revision == "20260910_0034"
|
||||
assert scripts.get_revision("20260923_0036").down_revision == "20260911_0035"
|
||||
assert TARGET_SCHEMA_REVISION == "20260924_0039"
|
||||
assert scripts.get_revision(TARGET_SCHEMA_REVISION).down_revision == "20260924_0038"
|
||||
|
||||
|
||||
def test_current_model_metadata_carries_both_exact_scope_constraints() -> None:
|
||||
|
||||
Reference in new issue
Block a user