Added full suite of tests & added testing to CI/CD

This commit is contained in:
c-d-p
2025-04-23 00:51:14 +02:00
parent e15a5c7612
commit be00f021ba
27 changed files with 1035 additions and 48 deletions

View File

@@ -3,12 +3,14 @@ from pydantic_settings import BaseSettings
from pydantic import Field # Import Field for potential default values if needed
import os
DOTENV_PATH = os.path.join(os.path.dirname(__file__), "../.env")
class Settings(BaseSettings):
# Database settings - reads DB_URL from environment or .env
DB_URL: str
DB_URL: str = "postgresql://maia:maia@localhost:5432/maia"
# Redis settings - reads REDIS_URL from environment or .env, also used for Celery.
REDIS_URL: str
REDIS_URL: str ="redis://localhost:6379/0"
# JWT settings - reads from environment or .env
JWT_ALGORITHM: str = "HS256"
@@ -22,7 +24,7 @@ class Settings(BaseSettings):
class Config:
# Tell pydantic-settings to load variables from a .env file
env_file = '.env'
env_file = DOTENV_PATH
env_file_encoding = 'utf-8'
extra = 'ignore'