1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Fix tests

This commit is contained in:
MoonTestUse1
2025-01-06 23:12:12 +06:00
parent c3145d7bc4
commit dbcfa0513f
3 changed files with 31 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
"""Settings configuration"""
import os
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
@@ -8,7 +9,8 @@ class Settings(BaseSettings):
API_V1_STR: str = "/api"
# Database
DATABASE_URL: str = "postgresql://postgres:postgres123@db:5432/support_db"
TESTING: bool = os.getenv("TESTING", "False") == "True"
DATABASE_URL: str = "sqlite:///./test.db" if TESTING else "postgresql://postgres:postgres123@postgres:5432/support_db"
# JWT
SECRET_KEY: str = "your-secret-key"