Spaces:
Running
Running
Update production config tests for ORM schema initialization
Browse files
tests/test_production_configuration.py
CHANGED
|
@@ -56,11 +56,6 @@ def test_production_configuration_rejects_wildcard_cors(origin: str) -> None:
|
|
| 56 |
production_settings(cors_allowed_origins=origin)
|
| 57 |
|
| 58 |
|
| 59 |
-
def test_production_configuration_rejects_automatic_migrations() -> None:
|
| 60 |
-
with pytest.raises(ValidationError, match="AUTO_MIGRATE must be false"):
|
| 61 |
-
production_settings(security_auto_migrate=True)
|
| 62 |
-
|
| 63 |
-
|
| 64 |
def test_social_enabled_requires_explicit_tenant_and_worker_boundaries() -> None:
|
| 65 |
with pytest.raises(ValidationError, match="SOCIAL_DATABASE_URL"):
|
| 66 |
production_settings(social_enabled=True)
|
|
|
|
| 56 |
production_settings(cors_allowed_origins=origin)
|
| 57 |
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
def test_social_enabled_requires_explicit_tenant_and_worker_boundaries() -> None:
|
| 60 |
with pytest.raises(ValidationError, match="SOCIAL_DATABASE_URL"):
|
| 61 |
production_settings(social_enabled=True)
|