Skip to content

Commit

Permalink
Merge pull request #877 from nledez/mail-debug
Browse files Browse the repository at this point in the history
Fix tests parameters & MAIL_DEBUG as integer
  • Loading branch information
frankrousseau authored Oct 18, 2024
2 parents dbb0605 + aca58c3 commit 3abf63d
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 3abf63d

Please sign in to comment.