♻️ Refactor logic to allow running pytest tests locally (#683)
This commit is contained in:

committed by
GitHub

parent
64e21bb0d5
commit
4e2c6bd6ba
@@ -23,7 +23,9 @@ def parse_cors(v: Any) -> list[str] | str:
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file=".env", env_ignore_empty=True)
|
||||
model_config = SettingsConfigDict(
|
||||
env_file=".env", env_ignore_empty=True, extra="ignore"
|
||||
)
|
||||
API_V1_STR: str = "/api/v1"
|
||||
SECRET_KEY: str = secrets.token_urlsafe(32)
|
||||
# 60 minutes * 24 hours * 8 days = 8 days
|
||||
@@ -77,7 +79,6 @@ class Settings(BaseSettings):
|
||||
return self
|
||||
|
||||
EMAIL_RESET_TOKEN_EXPIRE_HOURS: int = 48
|
||||
EMAIL_TEMPLATES_DIR: str = "/app/app/email-templates/build"
|
||||
|
||||
@computed_field # type: ignore[misc]
|
||||
@property
|
||||
|
Reference in New Issue
Block a user