Files
cc-ci/tests/bluesky-pds/test_restore.py
T
notplantsandClaude Fable 5.1 9a80002b37
continuous-integration/drone/push Build is failing
lint: ruff format + one auto-fix so the push self-test is green again
`scripts/lint.sh --fix` from the pinned lint devshell: 90 Python files
reformatted (ruff format, mechanical) and one C420 (dict comprehension →
dict.fromkeys) in tests/unit/test_f211_sso_skip.py. The push self-test had
been failing at the lint stage since build 1313 (2026-08-31) on exactly
these files; nothing else changed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FqkQq3CDmFWcQ7u1LzoyRz
2026-09-07 21:15:05 +00:00

17 lines
627 B
Python

"""bluesky-pds — RESTORE overlay (Phase 1e HC3): data-integrity, assertion-only + additive.
ops.pre_restore deleted the marker account (diverge); the orchestrator restored once. This overlay
asserts the account is back — i.e. the PDS data volume (atproto sqlite) genuinely round-tripped
through backup→restore (not just service-up)."""
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))
import _p4 # noqa: E402
def test_restore_returns_state(live_app):
assert _p4.account_exists(live_app), (
"restore did not bring back the seeded marker account (PDS data did not survive restore)"
)