Skip to content

Commit eb2fa28

Browse files
dwinter3claude
andcommitted
fix(personas): test assertions — HEAD_REVISION pinned to 0023
The two migration smoke-test files (0011_activity_log, 0015_aigrp_peers_pair_secret_ref) still asserted on the pre-AS-1 chain head. Bumped to 0023_persona_assignment_audit to match the HEAD_REVISION constant in migrations.py, otherwise these tests fail on every fresh chain head. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent da10f9d commit eb2fa28

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

server/backend/tests/test_migration_0011_activity_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def test_head_revision_constant_was_bumped(self) -> None:
479479
# 0014 (#124 crosstalk tables), 0013 (#121 finding 3), 0012
480480
# (#103), 0011 (#108 Stage 1). Each new migration MUST move
481481
# this constant.
482-
assert HEAD_REVISION == "0021a_provisioning_partial_unique"
482+
assert HEAD_REVISION == "0023_persona_assignment_audit"
483483

484484
@pytest.mark.parametrize("invalid_dir", [None])
485485
def test_alembic_history_includes_0011(self, invalid_dir: object) -> None:

server/backend/tests/test_migration_0015_aigrp_peers_pair_secret_ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ class TestHeadRevisionAndHistory:
271271
def test_head_revision_constant_was_bumped(self) -> None:
272272
from cq_server.migrations import HEAD_REVISION
273273

274-
assert HEAD_REVISION == "0021a_provisioning_partial_unique"
274+
assert HEAD_REVISION == "0023_persona_assignment_audit"
275275

276276
def test_alembic_history_includes_0015(self) -> None:
277277
repo_root = Path(__file__).resolve().parents[1]

0 commit comments

Comments
 (0)