1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/backend/app/core/test_config.py
MoonTestUse1 fec52c777b Fix tests
2025-01-06 23:40:39 +06:00

24 lines
566 B
Python

"""Test configuration"""
from pydantic_settings import BaseSettings
class TestSettings(BaseSettings):
"""Test settings"""
PROJECT_NAME: str = "Employee Request System Test"
# Database
DATABASE_URL: str = "sqlite:///:memory:"
# JWT
SECRET_KEY: str = "test_secret_key"
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
# Redis
REDIS_HOST: str = "localhost"
REDIS_PORT: int = 6379
class Config:
"""Pydantic config"""
case_sensitive = True
test_settings = TestSettings()