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
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user