Settings
⚙️ Testes para App Settings
Cobertura:
- SettingsAppsTestCase - Configuração de apps
- ✅ PROJECT_LABEL, PROJECT_VERSION, PROJECT_LAST_STARTUP
- ✅ INSTALLED_APPS (Django, custom, terceiros)
- ✅ SHOW_SUPPORT_FORM, SHOW_SUPPORT_CHAT
- SettingsDatabasesTestCase - Banco de dados
- ✅ Configuração default
- ✅ Engine PostgreSQL
- ✅ Porta válida
- ✅ DEFAULT_AUTO_FIELD
- SettingsSecuritiesTestCase - Segurança
- ✅ SECRET_KEY
- ✅ URLs de login/logout
- ✅ CORS
- ✅ CSRF
- ✅ OAuth
- ✅ SUAP
- SettingsDevelopmentsTestCase - Desenvolvimento
- ✅ DEBUG booleano
- ✅ Debug toolbar
- ✅ Middleware de debug
- SettingsCachesTestCase - Cache
- ✅ Configuração default
- ✅ Backend Redis
- ✅ Location
- SettingsEnvironmentVariablesTestCase - Variáveis de ambiente
- ✅ DJANGO_DEBUG
- ✅ POSTGRES_*
- ✅ SECRET_KEY
- SettingsIntegrationTestCase - Integração
- ✅ Configurações obrigatórias
- ✅ Ordem das apps
- ✅ Ordem dos middlewares
- ✅ Conexão com banco
- ✅ Cache funcional
- SettingsSecurityTestCase - Segurança
- ✅ SECRET_KEY não é default
- ✅ DEBUG em produção
- ✅ ALLOWED_HOSTS
- ✅ SSL redirect
- ✅ Cookies secure
- SettingsEdgeCasesTestCase - Casos extremos
- ✅ INSTALLED_APPS não vazio
- ✅ MIDDLEWARE não vazio
- ✅ Nomes de banco/usuário
- ✅ Sem variáveis de ambiente
- SettingsPerformanceTestCase - Performance
- ✅ Import rápido
- ✅ Pool de conexões