import base64 import hashlib import os from access_core.settings.base import * # Deterministic dev/test-only key for PHI field encryption. Never use in prod. os.environ.setdefault( "PHI_LOCAL_ENCRYPTION_KEY", base64.b64encode(hashlib.sha256(b"access-core-test-phi-key").digest()).decode(), ) os.environ.pop("PHI_KMS_KEY_ID", None) DEBUG = True ALLOWED_HOSTS = ["*"] DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:", } } # Disable webhook signature verification in tests by default HEALTHIE_WEBHOOK_VERIFY_SIGNATURE = False # Test data is synthetic; exercises the mock-server MBI fallback path. ALLOW_SYNTHETIC_MBI = True CMS_API_SUBMISSION_STATUS_PATH = os.getenv( "CMS_API_SUBMISSION_STATUS_PATH", "/fhir/{resource_type}/$submission-status?submissionID={submission_id}", )