diff --git a/timvt/settings.py b/timvt/settings.py index 0d0f6be..d84c03a 100644 --- a/timvt/settings.py +++ b/timvt/settings.py @@ -5,12 +5,13 @@ see: https://pydantic-docs.helpmanual.io/usage/settings/ """ + import sys from functools import lru_cache from typing import Any, Dict, List, Optional -from pydantic_settings import BaseSettings -import pydantic +import pydantic +from pydantic_settings import BaseSettings # Pydantic does not support older versions of typing.TypedDict # https://github.com/pydantic/pydantic/pull/3374 @@ -130,7 +131,7 @@ class PostgresSettings(BaseSettings): class Config: """model config""" - env_file = ".env" + env_file = ".env-test" # https://github.com/tiangolo/full-stack-fastapi-postgresql/blob/master/%7B%7Bcookiecutter.project_slug%7D%7D/backend/app/app/core/config.py#L42 @pydantic.validator("database_url", pre=True)