mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Show admins the email server error message when email sending fails (#2073)
* Show admins the email server error message when email sending fails
This commit is contained in:
@@ -894,7 +894,9 @@ def test_api_user_send_email():
|
||||
r = admin.post(
|
||||
"/api/v1/users/2/email", json={"text": "email should be accepted"}
|
||||
)
|
||||
assert r.status_code == 200
|
||||
# Email should go through but since we aren't mocking
|
||||
# the server we get a Connection refused error
|
||||
assert r.status_code == 400
|
||||
|
||||
destroy_ctfd(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user