feat: expand platform APIs, sources, and test coverage
Some checks failed
CI/CD Pipeline / Run Tests (pull_request) Successful in 1m53s
CI/CD Pipeline / Telegram Notify Success (push) Has been cancelled
CI/CD Pipeline / Run Tests (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m54s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped

This commit is contained in:
2026-03-17 12:56:48 +01:00
parent b505c67968
commit 3d298ce352
101 changed files with 8387 additions and 292 deletions

View File

@@ -22,9 +22,7 @@ def _parse_allowed_hosts(raw_value: str) -> list[str]:
if not hosts:
raise ImproperlyConfigured("ALLOWED_HOSTS must contain at least one host")
if "*" in hosts:
raise ImproperlyConfigured(
"ALLOWED_HOSTS must not contain '*' in production"
)
raise ImproperlyConfigured("ALLOWED_HOSTS must not contain '*' in production")
return hosts

View File

@@ -10,12 +10,16 @@ from .test import *
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": os.getenv("TEST_POSTGRES_DB", os.getenv("POSTGRES_DB", "mostovik_test")),
"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")),
"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": {