feat(registry): add new endpoints for registers, exchange, and backups; update routing and configurations
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 3m10s
CI/CD Pipeline / Run Tests (push) Successful in 3m35s
CI/CD Pipeline / Telegram Notify Success (push) Has been skipped
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m26s
CI/CD Pipeline / Run Tests (pull_request) Successful in 2m46s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 3m10s
CI/CD Pipeline / Run Tests (push) Successful in 3m35s
CI/CD Pipeline / Telegram Notify Success (push) Has been skipped
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m26s
CI/CD Pipeline / Run Tests (pull_request) Successful in 2m46s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped
This commit is contained in:
31
src/settings/test_postgres.py
Normal file
31
src/settings/test_postgres.py
Normal file
@@ -0,0 +1,31 @@
|
||||
"""
|
||||
Production-like test settings (PostgreSQL + real migrations).
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from .test import *
|
||||
|
||||
# Override SQLite with PostgreSQL to match production behavior.
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.postgresql",
|
||||
"NAME": os.getenv("TEST_POSTGRES_DB", os.getenv("POSTGRES_DB", "mostovik_test")),
|
||||
"USER": os.getenv("TEST_POSTGRES_USER", os.getenv("POSTGRES_USER", "postgres")),
|
||||
"PASSWORD": os.getenv(
|
||||
"TEST_POSTGRES_PASSWORD", os.getenv("POSTGRES_PASSWORD", "postgres")
|
||||
),
|
||||
"HOST": os.getenv("TEST_POSTGRES_HOST", os.getenv("POSTGRES_HOST", "127.0.0.1")),
|
||||
"PORT": os.getenv("TEST_POSTGRES_PORT", os.getenv("POSTGRES_PORT", "5432")),
|
||||
"CONN_MAX_AGE": 0,
|
||||
"TEST": {
|
||||
"NAME": os.getenv(
|
||||
"TEST_POSTGRES_DB",
|
||||
os.getenv("POSTGRES_DB", "mostovik_test"),
|
||||
),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
# Enable real migrations for schema parity checks.
|
||||
globals().pop("MIGRATION_MODULES", None)
|
||||
Reference in New Issue
Block a user