Skip to content

Commit

Permalink
Fix tests parameters & MAIL_DEBUG as integer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Ledez committed Oct 18, 2024
1 parent dbb0605 commit aca58c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ jobs:
py.test
env:
DEBUG: 1
MAIL_DEBUG: 1
MAIL_DEBUG_BODY: 1
MAIL_ENABLED: False
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"FLASK_APP": "zou.app",
"FLASK_DEBUG": "1",
"DEBUG": "1",
"MAIL_DEBUG": "1"
"MAIL_DEBUG_BODY": "1",
"MAIL_ENABLED": "False"
},
"args": ["run", "--no-reload"],
"jinja": true,
Expand Down
2 changes: 1 addition & 1 deletion zou/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
MAIL_PORT = os.getenv("MAIL_PORT", 25)
MAIL_USERNAME = os.getenv("MAIL_USERNAME", "")
MAIL_PASSWORD = os.getenv("MAIL_PASSWORD", "")
MAIL_DEBUG = envtobool("MAIL_DEBUG", 0)
MAIL_DEBUG = int(os.getenv("MAIL_DEBUG", "0"))
MAIL_DEBUG_BODY = envtobool("MAIL_DEBUG_BODY", False)
MAIL_USE_TLS = envtobool("MAIL_USE_TLS", False)
MAIL_USE_SSL = envtobool("MAIL_USE_SSL", False)
Expand Down

0 comments on commit aca58c3

Please sign in to comment.