TorbatYar/backend/services/payment/app/tests/test_migration.py
Mortezakoohjani 9fac160258 feat(payment): ship Torbat Pay MVP phases 14.0-14.5
Add independent payment-service (port 8012, payment_db) with foundation licensing, BYO-PSP, merchant accounts, idempotent requests, callbacks, and immutable ledger.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 17:57:04 +03:30

5 lines
317 B
Python

from pathlib import Path
def test_all_phase_migrations_exist():
names={p.stem for p in (Path(__file__).parents[2]/"alembic"/"versions").glob("*.py")}
assert {"0001_initial","0002_phase_141_psp","0003_phase_142_merchant","0004_phase_143_requests","0005_phase_144_callbacks","0006_phase_145_ledger"}<=names