TorbatYar/backend/services/payment/app/tests/test_architecture.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

9 lines
394 B
Python

from app.core.database import Base
import app.models
def test_all_owned_rows_are_tenant_scoped():
assert all("tenant_id" in t.columns for t in Base.metadata.tables.values())
def test_layers_exist():
from pathlib import Path
root=Path(__file__).parents[2]
for x in ("api","commands","queries","repositories","models","providers","events"): assert (root/"app"/x).exists()